You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation today says to use setTimeout() with a 3 second to wait for the outstream player renderer js to load. This is both inefficient and error prone as the renderer js can both load much quicker than 3 seconds and or take longer. There should be que that executes when the player script has loaded similar to how Prebid.js works.
The renderer config would then look something like this:
renderer: {url: 'bundle.js',// URL of the rendererrender: function(bid){varoutsteramPlayer=outstreamPlayer||{};outsteramPlayer.que=outstreamPlayer.que||[];outsteramPlayer.que.push(function(){// Object to configure the behaviour of outstream renderer from HTML page.varobj={width: 640,height: 480,vastTimeout: 5000,maxAllowedVastTagRedirects: 3,allowVpaid: false,autoPlay: true,preload: true,mute: false,adText: 'This is sample adtext.'}// Call to Global object of renderer.// Takes bid, element ID and configuration object as parametersoutstreamPlayer(bid,'video1',obj);});}}
This might need a bit of refactoring about the how player works today because the current code has outstreamPlayer() as constructor
The text was updated successfully, but these errors were encountered:
The documentation today says to use setTimeout() with a 3 second to wait for the outstream player renderer js to load. This is both inefficient and error prone as the renderer js can both load much quicker than 3 seconds and or take longer. There should be que that executes when the player script has loaded similar to how Prebid.js works.
The renderer config would then look something like this:
This might need a bit of refactoring about the how player works today because the current code has outstreamPlayer() as constructor
The text was updated successfully, but these errors were encountered: