Sourcepoint's webOS solution supports version 3+.

Sourcepoint's web-based webOS solution enables your organization to launch an OTT message campaign and collect end-user consent on webOS OTT devices. 


Requirements

In order to successfully utilize Sourcepoint's webOS solution your organization will need to satisfy the following requirements:


Import project

Clone the webOS SDK into your local workspace directory and import the repo into Project Explorer pane.

Screen_Shot_2021-04-16_at_2.55.46_PM.png


Configure client details

The cloned files will allow your organization to demo an OTT message tied to a Sourcepoint controlled property. In this section, we will cover the necessary steps to edit the details of the cloned files to surface your organization's OTT message campaign.

Replace the accountId and propertyHref parameters in the index.html file with your account specific information.

<script>
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){for(var t,e,o=[],n=window,r=n;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=n.parent}t||(function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))}();
</script>
<script>
    (function () { var e = false; var c = window; var t = document; function r() { if (!c.frames["__uspapiLocator"]) { if (t.body) { var a = t.body; var e = t.createElement("iframe"); e.style.cssText = "display:none"; e.name = "__uspapiLocator"; a.appendChild(e) } else { setTimeout(r, 5) } } } r(); function p() { var a = arguments; __uspapi.a = __uspapi.a || []; if (!a.length) { return __uspapi.a } else if (a[0] === "ping") { a[2]({ gdprAppliesGlobally: e, cmpLoaded: false }, true) } else { __uspapi.a.push([].slice.apply(a)) } } function l(t) { var r = typeof t.data === "string"; try { var a = r ? JSON.parse(t.data) : t.data; if (a.__cmpCall) { var n = a.__cmpCall; c.__uspapi(n.command, n.parameter, function (a, e) { var c = { __cmpReturn: { returnValue: a, success: e, callId: n.callId } }; t.source.postMessage(r ? JSON.stringify(c) : c, "*") }) } } catch (a) { } } if (typeof __uspapi !== "function") { c.__uspapi = p; __uspapi.msgHandler = l; c.addEventListener("message", l, false) } })();
</script>

<script type="text/javascript"> window._sp_queue = []; window._sp_ = { config: { isOTT: true, accountId: CLIENT_ACCOUNT_ID, baseEndpoint: 'https://cdn.privacy-mgmt.com', propertyHref: 'PROPERTY_NAME', ccpa: { }, gdpr: { } } } </script> <script src="https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js"></script>

  Note: To add a button/link that will resurface your privacy manager and allow end-users to directly manage their consent preferences on an ongoing basis you will need to add an OTT/CTV JavaScript code snippet to your index file. Click here for more information.


Run webOS emulator

Turn on your webOS emulator.

Once the emulator is running, navigate back to the webOS IDE to the Target Configuration pane and connect to the emulator machine.

Field Input
Name Enter a name for the device. Choose a name that can easily identify the device.
Host
  • TV device: IP address of the TV device.
  • Emulator: 127.0.0.1
Port
  • TV device: 9922
  • Emulator: 6622
Username
  • TV device: prisoner
  • Emulator: developer

You do not need to enter the Password and PrivateKey. When you use real TV, enable the Developer Mode before connecting the target.

With the connection to your emulator made, right-click the project folder in the Project Explorer window and click either Run As/Debug As > webOS Application.

Screen_Shot_2021-04-16_at_2.04.46_PM.png

If successful, your OTT message campaign will be surfaced in the simulator.

gif.gif

Was this article helpful?
0 out of 0 found this helpful