FreeWheel (beta)
****************
To configure the FreeWheel plugin:
Add the FreeWheel AdManager SDK and player styles, and import the
FreeWheel plugin:
import "@castlabs/prestoplay/cl.freewheel";
Add the FreeWheel customer data to the player configuration:
const playerConfig = {
// ...
freewheel: {
networkId: 42015,
serverUrl: '//demo.v.fwmrm.net/ad/g/1',
profileId: '42015:js_allinone_profile',
videoAssetId: 'js_allinone_demo_video',
pods: [
{ id: 'Preroll_1', position: 0, type: clpp.ads.PodType.PREROLL },
{ id: 'Midroll_1', position: 3, type: clpp.ads.PodType.MIDROLL },
{ id: 'Midroll_2', position: 30, type: clpp.ads.PodType.MIDROLL },
{ id: 'Postroll_1', position: 60, type: clpp.ads.PodType.POSTROLL }
]
}
};
See "FreeWheelConfiguration"
(https://players.castlabs.com/web/latest/docs/api/clpp.FreeWheelConfiguration.md)
for all available configuration options.
The whole code can look like this: