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

No playable sources found with non-flash browsers


Hello,

I would like to report a bug related with incorrect rss playlist load/parse code in plain html5 mode in jw 6.4.3359.

Prerequisites: A browser without flash plugin - I was able to reproduce with latest FF, Opera and Safari. However Android 4.1 with no flash installed does not show this kind of behavior.

Setup: create simple rss playlist-file pointing to the mp4 source file and make 1-liner jw setup with playlist: 'rss_url'.

This will produce the following results:
FF - No playable sources found
Opera - No playable sources found
Safari - dies somewhere in between with the following errors:
---------------
No suitable players found and fallback enabled
jwplayer.js:3There was an error while handling a listener: TypeError: 'undefined' is not an object (evaluating 'n.length') function () {if("array"==a.typeOf(m.playlist)&&2>m.playlist.length&&(0==m.playlist.length||
!m.playlist[0].sources||0==m.playlist[0].sources.length))g();else if(s.getStatus()==a.loaderstatus.COMPLETE){for(var e=0;e<m.modes.length;e++)if(m.modes[e].type&&j[m.modes[e].type]){var f=a.extend({},m),r=new j[m.modes[e].type](n,m.modes[e],f,s,b);if(r.supportsConfig())return r.addEventListener(l.ERROR,d),r.embed(),c(b,f.events),b}m.fallback?(a.log("No suitable players found and fallback enabled"),new j.download(n,m,g)):(a.log("No suitable players found and fallback disabled"),n.parentNode.replaceChild(h,
n))}}
---------------

here are the sample links. this one contains embedded mp4 link:
http://usp.jroger.org/ms09.html
it works fine for all flash/non-flash browsers

this one calls for rss which contains same mp4 link:
http://usp.jroger.org/ms10.html
it doesn't work in no-flash browsers.

also some additional observations regarding this bug:
1) safari with flash plugin installed but disabled via 'click to flash' extension is able to play ms10.html setup.
2) chrome with installed and disabled flash is also able to play it.
3) FF with enabled flash will always show 'No playable sources found' with ms10.html until after 'primary: flash' is added to the setup config.




5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

That is because it is inside of an RSS file, and for HTML5 mode to work the RSS file has to reside on the same exact domain (even sub domain) that the player is embedded one. And note, FF doesn’t support MP4 files in HTML5 <video>.

JW Player

User  
0 rated :

Hi Ethan,

Actually as you can see from the example above jwplayer, rss and mp4 content are all reside on the same subdomain. only the first requested page (msxx.html) is somewhere else.

I guess you are talking here about CORS access? As far as I can see from the source code, rss is requested via XMLHttpRequest which should be covered by Access-Control-Allow-Origin set to '*'. Also it's clearly seen from the firebug that rss is not forbidden by any access policies but successfully fetched.

Yes, I know FF doesn't support MP4 in html5 video, however in my particular setup ms09.html plays pretty much well in FF, so the whole big difference between ms09 and ms10 setups is this rss playlist.

Also please note ms10 is still fully accessible and playable from Android 4.1 with no flash support at all.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, I am talking about CORS.

We have a working RSS example here, for example – http://www.longtailvideo.com/support/jw-player/29253/basic-rss-feed

JW Player

User  
0 rated :

so, Access-Control-Allow-Origin: is set to *. There are no restrictions to load rss.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes. Our example works. Does it work for you?

This question has received the maximum number of answers.