
Passing a parameter to JavaScript creative
How can I pass a value from the JWPlayer OVA configuration block on my web page to a linear VPAID JavaScript creative that's specified in that block? I'm aware of the "custParams" property but I'm not sure if this is the correct property to use. If "custParams" is the correct property to use, how is the passed value retrieved in the JavaScript creative? My configuration block resembles the following:
<script type="text/JavaScript">
var playerInstance = jwplayer("videoPlayer");
playerInstance.setup({
file: "somevideo.mp4",
height: 720,
width: 1200,
advertising: {
client: 'vast',
schedule: {
postroll: {
offset: 'post',
tag: "https://some.adserver.com/sometag",
custParams: {
valueToPass: "someValue"
}
}
}
}
});
</script>
I'd appreciate any assistance you can provide!