Using multiple keys with different jwplayer instances
We are trying to create a Video Ad Format using JWPlayer. Something like this:
(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:
// Publisher player back up
var oldjwplayer = jwplayer;
jwplayer = undefined;
jwplayer.key = "...";
var our_jwinstance = jwplayer("div_id");
// Keeping our player and restoring publishers's
var newjwplayer = jwplayer;
jwplayer = oldjwplayer;
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?