Player not loading: when JWPlayer 6 used in Iframe
I have two web pages on separate domains:
content.html page with JwPlayer
parent.html page with an Iframe with its source set to content.html
The player fails to load. This occurs in Firefox on Ubuntu. I have also tried briefly on Widows with IE9 and again the player does not load.
Here is a link demonstrating the issue:
Firebug reports the error:
There was an error while handling a listener: Error: Permission denied to access property 'href' f()
Although the player does load in Chrome, developer tools also reports the error:
In p.jwpcdn.com/6/0/jwpsrv.js on line 3.
On this line a reference is made to window.location.href;
This leads me to belive that the problem is that the iframe webpage (jwPlayer) is trying to access a property of its parent window. As the player is inside an iframe there is no parent window and thus the error occurs.