Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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:

http://test.site.clowdy.net/parent.html

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:

Unsafe JavaScript attempt to access frame with URL http://test.site.clowdy.net/parent.html from frame with URL http://redesigned.clowdy.net/content.html. Domains, protocols and ports must match.

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.

Please Advise,

59 Community Answers

Pablo

JW Player Support Agent  
0 rated :

@Paul -

I’ve created a bug ticket to address this issue – the player should not fail to load if it’s being loaded in a cross-domain iframe.

Please note, it’s not the iframe that’s causing the problem per se, but rather the fact that the player is embedded in an iframe whose src is set to a different domain from the parent frame. Loading both pages from the same domain should work properly.

JW Player

User  
0 rated :

Thanks for bringing this up - I was stuck on the exact same problem!

With chrome, it works though, but not with firefox or Internet explorer.

JW Player

User  
0 rated :

We just hit this same issue. Do you have a link to the bug and details of when this is expected to be fixed? It's a show-stopper for us, building a Facebook application which is hosted in Facebook's iframes.

Does the error affect older versions of JW Player too? We're building on v6 but would be able to downgrade I think if it won't be fixed in time.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link Aaron?

JW Player

User  
0 rated :

Sorry, we've moved on to another player due to the time constraints and don't have a demo of the original code. Same issue as above for definite though. Worked fine outside the iframe, broken inside.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

We're affected by this as well.

Main page is the admin subdomain, iframe is the client subdomain.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

have the same issue as well - using jwplayer5 until this gets fixed (hopefully soon - just paid for an upgrade that i can't use!).

can someone provide an ETA?

Thanks

JW Player

User  
0 rated :

Same problem here, I can't provide a link but I'm using jwplayer as per documentation inside a facebook page-tab.

JW Player

User  
0 rated :

Same problem, iframe with player not working in firefox:

There was an error while handling a listener: Error: Permission denied to access property 'href'

function f(){if(a.typeOf(p.playlist)=="array"&&p.playlist.length<2){if(p.playlist.length==0||!p.playlist[0].sources||p.playlist[0].sources.length==0){r();return}}if(h.getStatus()==a.loaderstatus.COMPLETE){for(var w=0;w<p.modes.length;w++){if(p.modes[w].type&&e[p.modes[w].type]){var x=p.modes[w].config,u=a.extend({},x?e.config.addConfig(p,x):p),v=new e[p.modes[w].type](i,p.modes[w],u,h,t);if(v.supportsConfig()){v.addEventListener(c.ERROR,g);v.embed();m(t,u.events);return t}}}if(p.fallback){a.log("No suitable players found and fallback enabled");new e.download(i,p,r)}else{a.log("No suitable players found and fallback disabled");q()}}}

jwplayer.js

JW Player

User  
0 rated :

Same thing happening for me....

https://mdh.infusionsoft.com/app/page/demo

Works just fine for Chrome and Safari

Not Firefox :(

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi guys – We are aware of the issues, thanks, and will be fixing.

JW Player

User  
0 rated :

Any sollution?

Ethan Feldman

JW Player Support Agent  
0 rated :

It will be fixed in the next release…

JW Player

User  
0 rated :

When is the next release - my page looks pants as the video doesn't work!!!

JW Player

User  
0 rated :

Please, when is teh next release??

Ethan Feldman

JW Player Support Agent  
0 rated :

It is looking like two weeks or so…

JW Player

User  
0 rated :

Too late, I need the fix.

I bought the license a week ago. Or downgrade me to version 5

Ethan Feldman

JW Player Support Agent  
0 rated :

Send and email and we can help you out – http://www.longtailvideo.com/support/contact-us, please put in your order #.

JW Player

User  
0 rated :

Hi Ethan,

Is this patched in your dev environment? If so, can you provide a hotfix?

JW Player

User  
0 rated :

That is a very long time, is there a development version or something we could do in the meantime? We have a production application and a big part of the business is using cross domain iframes.

Maybe downgrading to jwplayer 5?

Thanks.

JW Player

User  
0 rated :

Workaround:

Turn off analytics (we did not even use it)
bc.. analytics: { enabled:false }

Ethan Feldman

JW Player Support Agent  
0 rated :

Guys – I don’t have a patch, I was just sending V5. Thanks for sharing the work around.

JW Player

User  
0 rated :

Hi, do we have an update on when the next release is going to happen?

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

6.1 should be out soon.

JW Player

User  
0 rated :

Hi - I'm having same issue. Any news on the next update?

Ethan Feldman

JW Player Support Agent  
0 rated :

Soon, still in QA.

JW Player

User  
0 rated :

Hi,
I am having the same issue.
Good work!

Ethan Feldman

JW Player Support Agent  
0 rated :

Soon!

JW Player

User  
0 rated :

I have same prob. How long does it take?

Ethan Feldman

JW Player Support Agent  
0 rated :

6.1 is already out. You can download it now.

JW Player

User  
0 rated :

Is it just me, or does it look like this problem still exists? Embedding the player in an iframe, and it won't play (same JS error as above). The iframe is part of a shadowbox (http://www.shadowbox-js.com/)

Ethan Feldman

JW Player Support Agent  
0 rated :

Link?

JW Player

User  
0 rated :

Summary: On Firefox Browsers using JW Player 6.X, we receive the message: Error Loading Playlist: No playable sources found - Firefox works with JW Player 5.X

1. We just purchased JW Player Module Advanced 3.1.0 for a Joomla site - All Browsers except Firefox (18.0) work (IE 8, Chrome, Safari, iPad, iPhone).

2. Here is a portion of our XML file:
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Basic RSS Feed</title>

<item>
<title>Investment Process</title>
<media:content url="http://video.joomlarulez.com/videos/ljKZiMjt-0QxIqpO9.mp4" width="320" height="180" />
<media:content url="http://video.joomlarulez.com/videos/ljKZiMjt-AZoTbLqY.mp4" width="480" height="270" />
<media:content url="http://video.joomlarulez.com/videos/ljKZiMjt-TvC5OocX.mp4" width="720" height="406" />
<media:content url="http://video.joomlarulez.com/videos/ljKZiMjt-taajamgF.mp4" width="1280" height="720" />
<media:thumbnail url="http://video.joomlarulez.com/thumbs/ljKZiMjt-480.jpg" />
</item>

</item>
....
<item>
<title>Targeted Return</title>
<media:content url="http://video.joomlarulez.com/videos/F7BAXAln-0QxIqpO9.mp4" width="320" height="180" />
<media:content url="http://video.joomlarulez.com/videos/F7BAXAln-AZoTbLqY.mp4" width="480" height="270" />
<media:content url="http://video.joomlarulez.com/videos/F7BAXAln-TvC5OocX.mp4" width="720" height="406" />
<media:content url="http://video.joomlarulez.com/videos/F7BAXAln-taajamgF.mp4" width="1280" height="720" />
<media:thumbnail url="http://video.joomlarulez.com/thumbs/F7BAXAln-480.jpg" />
</item>

</channel>
</rss>

3. JW Player Module Advanced Settings:

Playlist Parameters: RSS link
Skin Parameters:
JW 6.x XML Skin - None Selected
JW 5.x XML Skin - Non Selected
Unzip XML Skin: Automatic
Behavior: Auto Start - No
Bandwidth: 5000
Buffer Length: 1
HTTP Parameters:
Start parameters: start
DVR Streaming: No
Plugin HD:
HD Plugin Enabled: Yes
Version of HD Plugin: Version 2
HD Bitrate: 10142
HD Full Screen: Yes
HD State: Yes

Global: Global Parameters
Version of JW Player 6 (Firefox works with 5)
Load Swf Object 2.2: Automatic
Load Meta to facebook Sharing: Autommatic
Flash Install: Yes
XML Config:
iframe: Build iframe if not exist

Here's URL:
http://www.tcaglobalfund.com/video
user info: tester/tester

Any assistance would be appreciated.

Ethan Feldman

JW Player Support Agent  
0 rated :

I would use this XML file as a template – http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/assets/mrss.xml

JW Player

User  
0 rated :

I believe this bug is still not fixed properly in the latest version of JWplayer (6.1).

When using Firefox and the client device is not directly connected to the internet I get an error stating the "Could not load plugins:
File not found". If I use use, Safari, IE or Chrome I do not see the same issues.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

Sorry I can't provide you with a link, we are embedding JWplayer 6.1 into PHPmotion and this is hosted internally on our network.

Today I confirmed that the issue is not present in JWplayer 5.10.

Another observation I found was that our company uses Citrix Xenapp with Internet Explorer 8. Strangely, in a Xenapp environment the first launch of JWplayer works...however as soon as the page refreshed the video no longer loads "Could not load player configuration" is the error.

Again, moving back to 5.10 the problem goes away.

Until these issue are resolved I cannot upgrade to JWplayer 6.

I'm happy to provide you further information if you'll find it helpful but I cannot provide you with an internet link.

Graeme

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you email one? Going to need at least something to work with here, can’t just guess.

JW Player

User  
0 rated :

nope, the server is hosted inside a corporate network which is not directly connected to the internet. I'd have to punch a hole through the firewall and register DNS and even then you wouldn't be going through Citrix.

I think the two problems are inter-related.

On my home network I can re-produce the Firefox issue simply by removing my default gateway and then connecting to the host virtual machine.

If you need to address the Citrix issue then the best I can do is set up a Team Viewer session where I can show you what's going on.... happy to do that if you want to arrange a mutually convenient time? Just let me know and I'll drop you an email.

Graeme

Ethan Feldman

JW Player Support Agent  
0 rated :

How about code? Team viewing isn’t going to help much since I won’t be able to use any debugging tools…

JW Player

User  
0 rated :

Yeah sure... do you want a compressed tar ball or do you want me to post just the jwplayer calls etc?

Ethan Feldman

JW Player Support Agent  
0 rated :

You can post the code you are using to embed. The fact that you mentioned PHP Motion is a red flag for me because it was written by them, used our old player for a while, then they changed to a different player, and in JW6, our JS embedder must be used. Really though, being able to debug this, via a link, would be the best way. I don’t know if you need my IP or anything like that.

JW Player

User  
0 rated :

OK...

PHPmotion 3.5 > make_player.htm

<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>

<!--start of PHPmotion Player -->
<div id='mediaspace'>xxxxThis text will be replaced</div>

<script type="text/javascript">
jwplayer('mediaspace').setup({
'file': '[var.base_url]/uploads/[var.video_play]',
'image': '[var.base_url]/[var.thumb_file]',
'height': '400',
'width': '500',
});
</script>
<!--end of PHPmotion Player -->

---------------------------------------------------------------------------

PHPmotion 3.5 > inner_index.htm

<!--Video Player Container. This is where the player embed code goes-->
<div id="index-player-container">
<div id="myAlternativeContent">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>

<script type="text/javascript">
jwplayer('myAlternativeContent').setup({
height: 360,
listbar: { position: 'right', size: 160 },
width: 710,
playlist: "[var.base_url]/playlist_rss.php",
analytics: { enabled:false },
primary: "flash"
});
</script>
<!--end of PHPmotion Player -->

<!--End Video Player Container-->


---------------------------------------------------------------------------

playlist_rss.php generates the following output which are all accessible.

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" >
<channel>
<item>
<title>Ted Movie Trailer</title>
<description>Ted Movie Trailer</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/MGURA1jgSIiTiDJJvDPx.jpg" />
<media:content url="http://192.168.0.20/uploads/MGURA1jgSIiTiDJJvDPx.flv" />
<media:content url="http://192.168.0.20/uploads/MGURA1jgSIiTiDJJvDPx.mp4" />
</item>
<item>
<title>Sky Fall Trailer</title>
<description>Sky Fall Trailer</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/cTXKAjSJtpGtH02PbgtS.jpg" />
<media:content url="http://192.168.0.20/uploads/cTXKAjSJtpGtH02PbgtS.flv" />
<media:content url="http://192.168.0.20/uploads/cTXKAjSJtpGtH02PbgtS.mp4" />
</item>
<item>
<title>Movie Trailer</title>
<description>Movie Trailer</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/mDGBtzuw1baZGbUpaZKZ.jpg" />
<media:content url="http://192.168.0.20/uploads/mDGBtzuw1baZGbUpaZKZ.flv" />
<media:content url="http://192.168.0.20/uploads/mDGBtzuw1baZGbUpaZKZ.mp4" />
</item>
<item>
<title>The search for pushy cats</title>
<description>The search for pushy cats</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/JyBpUZRWPMdYO2mkZQPc.jpg" />
<media:content url="http://192.168.0.20/uploads/JyBpUZRWPMdYO2mkZQPc.flv" />
<media:content url="http://192.168.0.20/uploads/JyBpUZRWPMdYO2mkZQPc.mp4" />
</item>
<item>
<title>Taken Movie Trailler</title>
<description>Taken Movie Trailler</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/SWkmWb3yh4HbSYUvXzHH.jpg" />
<media:content url="http://192.168.0.20/uploads/SWkmWb3yh4HbSYUvXzHH.flv" />
<media:content url="http://192.168.0.20/uploads/SWkmWb3yh4HbSYUvXzHH.mp4" />
</item>
<item>
<title>Check file upload</title>
<description>Check file upload</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/h0OxPhs03yshlCBMykVx.jpg" />
<media:content url="http://192.168.0.20/uploads/h0OxPhs03yshlCBMykVx.flv" />
<media:content url="http://192.168.0.20/uploads/h0OxPhs03yshlCBMykVx.mp4" />
</item>
<item>
<title>XMEN First Class Trailer</title>
<description>XMEN First Class Trailer</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/dLp4A3EtykQgTLF1S3Am.jpg" />
<media:content url="http://192.168.0.20/uploads/dLp4A3EtykQgTLF1S3Am.flv" />
<media:content url="http://192.168.0.20/uploads/dLp4A3EtykQgTLF1S3Am.mp4" />
</item>
<item>
<title>Video upload test</title>
<description>Video upload test</description>
<media:thumbnail url="http://192.168.0.20/uploads/player_thumbs/S6FVuku7voIb1wyU82nu.jpg" />
<media:content url="http://192.168.0.20/uploads/S6FVuku7voIb1wyU82nu.flv" />
<media:content url="http://192.168.0.20/uploads/S6FVuku7voIb1wyU82nu.mp4" />
</item>
</channel>
</rss>

------------------------------------------------------------





Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, you are using the embedder, so that is fine. Can you put something up that we can look at? We will sign any NDAs if necessary, our support really requires our ability to debug something on our end though. Without it, it will be very hard to guess.

JW Player

User  
0 rated :

Thanks Ethan.

Have you tried reproducing the issue without an internet connection?

As I mentioned earlier, if I remove my default gateway on my LAN I can view videos using IE, Google, Safari - but not Firefox?

or... should JWplayer require that an internet connection be always available to operate?

Ethan Feldman

JW Player Support Agent  
0 rated :

Np.

JW6 requires to at least be embedded in a localhost environment. It won’t work locally.

However, a connection is required, I believe.

JW Player

User  
0 rated :

I'll be surprised if JWplayer requires an internet connection to work properly... besides it doesn't explain why pretty much all browsers work except Firefox.

but I'll record a video and upload it tomorrow to show what's going on.

Thanks for your help.
Graeme

Ethan Feldman

JW Player Support Agent  
0 rated :

Np, but I would need a link in order to take a look at this and actually diagnose this bug (?) properly…really would be helpful. Please email it if you can, or put something up on a public facing server demonstrating the issue.

JW Player

User  
0 rated :

I have the same issue also...

Here is a public page that is the parent: https://my.hawkeyecollege.edu/publicwebadvisor/?curl=Z2FdeptZ2FctlsZ2FclassequipZ2FPublic%20AccessZ2Fparent.html

The child frame: http://hcc-media.hawkeyecollege.edu/AngelUploads/Content/LOR-Communications-1/_assoc/7D4DECB784644541B0D28EE0DB804159/

Ethan Feldman

JW Player Support Agent  
0 rated :

This works fine, and you bumped a thread about JW6 with a link using JW5, not related.

JW Player

User  
0 rated :

Hi Ethan,

I am using JW6.2 licensed in an iframe and the player does not work on Firefox19 nor IE9. It works on Chrome, Safari, and ipad (hls)

If the page is on the same server that the player, it works, but I need to plublish from in a different server for Blackboard.

If I use the JW5.10 it works in all the browsers with exception of iPads.

Is there a solution or workaround?

Thansk!

Ethan Feldman

JW Player Support Agent  
0 rated :

Link?

JW Player

User  
0 rated :

Not working on IE/Firefox

http://irt.austincc.edu/TechnologySupport/Streaming/generator/test_iframe3.html

and

http://irt.austincc.edu/TechnologySupport/Streaming/generator/test_iframe2.php

Working on IE/Firefox

http://irtflash.austincc.edu/player62/test.html


Thanks :-)

Ethan Feldman

JW Player Support Agent  
0 rated :

The issue is that you are using 6.0

6.1, and 6.2, fix this.

Update to 6.2 – http://account.longtailvideo.com/

JW Player

User  
0 rated :

Ethan,

These rare my iframe pages for JW5 and JW62:

http://irtflash.austincc.edu/player5/iframe.php
http://irtflash.austincc.edu/player62/iframe.php

JW Player

User  
0 rated :

Thanks Ethan.... I will download the player and try again.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.