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

Jwplayer 7.0.3 with flash 18 not playing videos


Although it works well ni html5 mode with mp4 files, the player does not play neither flv files in flash mode, nor mp4 files in flash mode. The error in Firefox (40.0.3) and IE11 (11.0.9600.17959): "Error loading player: No playable sources found". In Chrome (44.0.2403.157), it's just loading indefinitely.

What is even stranger is that the player from the dashboard (https://dashboard.jwplayer.com/#/players/basic_setup) manages to play flv files when loading them from the console using the following call:
jwplayer(document.querySelector('.jwplayer')).load([{ file:'http://www.sample-videos.com/video/flv/720/big_buck_bunny_720p_1mb.flv' }]);

Here's a jsfiddle showcasing the issue:
https://jsfiddle.net/kLdmj42d/ (make sure you specify a license key)
Just toggle the comments on the mp4 and flv files to make sure it actually works with the mp4 file.

9 Community Answers

jerome.louis.swing

User  
0 rated :

"Error loading player: No playable sources found" was actually caused by a flash that hadn't been updated. Now that the last flash version has been installed, it's also loading indefinitely in Firefox.

jerome.louis.swing

User  
0 rated :

Forgot the specify the OS : Windows 7. Same issue on Ubuntu.

Randy

JW Player Support Agent  
0 rated :

Hello Jerome,

I see the stream fine in FF using Flash v18. Are you sure Flash Player is enabled in “Plug-ins”. What release of Ubuntu are you currently running?

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

jerome.louis.swing

User  
0 rated :

After investigating, the reason it doesn't work with jsfiddle is that the code is executing in a sandboxed iframe.

It doesn't explain why it won't work in my app though (no iframe).

jerome.louis.swing

User  
0 rated :

It seems to be an issue with AMD modules. When I load jwplayer without AMD, it works. If I load it without AMD, it doesn't.

jerome.louis.swing

User  
0 rated :

Correction:

It seems to be an issue with AMD modules. When I load jwplayer without AMD, it works. If I load it with AMD, it doesn't.

jerome.louis.swing

User  
0 rated :

Found the bug!

The issue is that, apparently, the flash player needs access to window.jwplayer to work.

But, obviously, when using AMD, window.jwplayer is never set.

The solution would be to set window.jwplayer even when loading as a AMD (or CommonJS) module.

For the time being, I'll just set window.jwplayer in my code.

jerome.louis.swing

User  
0 rated :

Btw, still doesn't work with 7.1.0.

Randy

JW Player Support Agent  
0 rated :

Hello Jerome,

Thank you for the information. I will relay this information to our development team for further review.

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

This question has received the maximum number of answers.