
Using multiple keys with different jwplayer instances
Hello,
We are trying to create a Video Ad Format using JWPlayer. Something like this:
http://demos.netsonic.tv/demos_web/vid_interstitial_demo.php
(Not using JWPlayer in that demo.)
But we wondered..
What if the Publisher site already has JWPlayer using its own configuration?
We would like to have both, but we don't want to modify any behaviour on the publisher site or video.
When we call to the jwplayer.js with our version, it won't load because an instance called "jwplayer" already exists in this page.
We also don't want to mix our keys with the publisher's one.
I also tried something like this:
<script type="text/javascript">
// Publisher player back up
var oldjwplayer = jwplayer;
jwplayer = undefined;
</script>
<script type="text/javascript" src="loading our jwplayer.js"></script>
<script type="text/javascript">
jwplayer.key = "...";
var our_jwinstance = jwplayer("div_id");
our_jwinstance.setup(config);
// Keeping our player and restoring publishers's
var newjwplayer = jwplayer;
jwplayer = oldjwplayer;
</script>
But it looks like it's not working as I keep getting a "Could not load player configuration" error.
I've been looking for a topic like this, but I only found about multiple players using the same key and jwplayer instances.
Is there any solution to work like this using JWPlayer?
Best regards,
Juan