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

Error loading media: File could not be played on IOS first time we open the page


Error loading media: File could not be played on IOS

code: 4
MediaError Prototype
MEDIA_ERR_ABORTED: 1
MEDIA_ERR_DECODE: 3
MEDIA_ERR_ENCRYPTED: 5
MEDIA_ERR_NETWORK: 2
MEDIA_ERR_SRC_NOT_SUPPORTED: 4

I have an mp4 video and getting this error first time we open the page
and the video works well when i reload the page

9 Community Answers

Heidi

JW Player Support Agent  
0 rated :

Hello, we would need to take a look at your stream to troubleshoot, do you have a link you could send? I have not seen the errors you include here before.

m...

User  
0 rated :

Hello,

You can check the videos at the following links

https://www.touristtube.com/s--Sv_1_0
https://www.touristtube.com/o--Sv_1_0

For some videos, it may be possible to play on the second run.

We're testing on an iPhone, and we've tried with several OS versions. The same problem also occurs on Apple computers.

Heidi

JW Player Support Agent  
0 rated :

Hello,

For this link:
https://www.touristtube.com/s—Sv_1_0

I checked your video on a Mac and I was able to see your issue. When I took a look at your page in the network tab I see that the request for your mp4 video asset stalls before it errors. Could you please set up a reproduction page according to these guidelines for further troubleshooting:

https://support.jwplayer.com/customer/en/portal/articles/2186238-troubleshooting-creating-a-reproduction-page

Also, I see a lot of references to flash media on your pages within various attributes and functions. The fact that you are seeing a lot of issues on Mac and mobile could point to a Flash problem. You may want to read our recent blog post on the deprecation of Flash and start to move your page code away from a reliance on this:

https://www.jwplayer.com/blog/deprecation-flash/

I notice you are using an older version of the player JW 7.4, could you please update your player to our latest version JW 7.7.2, along with the steps from above, and let me know if that helps?

https://support.jwplayer.com/customer/portal/articles/1403726-jw-player-7-release-notes

Hope this helps.

Heidi

m...

User  
0 rated :

Hello,

Please find below the link to the reproduction page.
The video changes every time you refresh the page (this has been implemented for the convenience of testing).

Best Regards,
Roger

m...

User  
0 rated :

Reproduction page: https://www.touristtube.com/video_test

Heidi

JW Player Support Agent  
0 rated :

Hello,

Your test page is working fine for me on iOS 10. Are you still experiencing issues? If so, could you please let me know where you are seeing the above errror messages? These are not error messages from the player.

Heidi

r...

User  
0 rated :

Hello,

We've modified the page to show the actual error (the previous page showed a static error string, which was not relevant).

We're catching two types of events: setupError and error. There's apparently no setupError occurring.

The returned error is:: Error loading media: File could not be played

The tests were done on an iPhone 5S with iOS 10.1 and on iPhone 7 with iOS 10.1.1

We also added later a handler for the ready event, and for the meta event. The ready event displays the setupTime and the meta event should display the metadata event, although it's not always working.

r...

User  
0 rated :

Note that tests are done using Safari browser.

Heidi

JW Player Support Agent  
0 rated :

Hello,

I see that your media files are working fine in a simple test page in iOS: http://qa.jwplayer.com/~heidi/touristtube.html

But I am getting an error loading the file when I look in the videos in your setup from the test page. Could you please set up a simple test page following these guidelines:

https://support.jwplayer.com/customer/en/portal/articles/2186238-troubleshooting-creating-a-reproduction-page

Our documentation on providing multiple sources in a self-hosted player setup may also help:

https://support.jwplayer.com/customer/portal/articles/1710454-configuring-multiple-sources

This question has received the maximum number of answers.