15

We ran into a very strange problem with JW Player and really don't know an approach to solve it.

JW Player shows the error:

Error loading media: File could not be played

sporadically across all browsers and platforms (sometimes it shows up and sometimes not). It took me over 30 reloads to get it and some of my colleagues got it with their first try. It's behavior is very inconsistent and kind of random.

We're using FirstSpirit as CMS on an Apache Tomcat instance running on Windows server. The problem occurred on Chrome, IE and Firefox across all versions.

The MIME types of all videos are correct as their codecs are. If supported, JW Player is running in HTML5 mode. We use Flash only for older browsers (IE8 groan).

I would appreciate any help. Thanks!

Marcus


UPDATE: Example page with video box on the right side. Example page with video

UPDATE: We updated the version as Ethan from JW Player suggested, but it's still not working properly.

user7637745
  • 965
  • 2
  • 14
  • 27
Marcus Rommel
  • 1,266
  • 1
  • 12
  • 17
  • A link to your site would help. Sounds like a basic server problem, however, or some sort of timing issue with the CMS. – MisterNeutron Jun 08 '15 at 22:27
  • Added a link in my question – Marcus Rommel Jun 08 '15 at 22:50
  • For 2nd try it started for me. (It's about the assembly of an engine.) In another private window it did not start... – Gábor Imre Jun 09 '15 at 00:00
  • 1
    I would advise upgrading from 6.3 to 6.12 - https://account.jwplayer.com/ – emaxsaun Jun 09 '15 at 14:45
  • Hello Ethan. We updated our version but the error is still occurring. Any suggestions? – Marcus Rommel Jun 10 '15 at 15:51
  • I am not able to reproduce this , the video is working for me – Hitesh Jun 15 '15 at 06:59
  • It took me several (30+) tries to reproduce it. – Marcus Rommel Jun 15 '15 at 07:01
  • @MarcusRommel did you ever resolve this? I am having the same issue and came across your question in my search for answers. We are using 6.12.4956 – MatthewT Nov 05 '15 at 04:59
  • @MatthewT sry for my late answer. Unfortunately we've never resolved the issue. – Marcus Rommel Nov 13 '15 at 10:58
  • @MarcusRommel : From your example `http://www.us.mahle.com/mahle_north_america/en/products-and-services/passenger-cars/oil-management/oil-filter-modules/` - Whenever you see the error Can you also check if Video URL `/global/media/global_news/videos/3d-animations/mahle_oelfilter_pin_h264_web800.mp4` is working or not seperatly. From Jwplayer site http://support.jwplayer.com/customer/portal/articles/1403682-common-error-messages , this error occurs for wrong format But you seems to providing correct format, so this error does not make sense ... let me know if video url works, when error shown. – Hitesh Nov 28 '15 at 07:03
  • @MatthewT : What kind of issue you are facing, have you added any question in SO, please share the link – Hitesh Nov 28 '15 at 07:08
  • @Matthew I am also getting this kind of issue and the issue is Uploaded video is not playing in JW player as Getting message like this "Error loading media: File could not be played" and Its happen sudden. – Gupta Dec 05 '17 at 10:14
  • worked for me on the first try. JWPlayer is now at 7.11.0. – oninross Jan 16 '18 at 03:54
  • I was unable to find an error despite multiple refreshes However if the video loads and doesnt load, I would agree with a much earlier comment that it may be server related – DataCure Jul 19 '18 at 17:49

1 Answers1

1

I would suggest to encode the video in .mp4 and .ogg. (MP4 is supported in Safari and IE9, Ogg in Firefox, Chrome and Opera and as you mentioned IE6-8 uses flash only). Thus your video element will look something like:

<video width="300" controls>
  <source src="my_video.ogg" type="video/ogg">
  <source src="my_video.mp4" type="video/mp4">
  Your browser does not support HTML5 video.
</video>

This will ensure that the video will be played if the browser support HTML5. I hope this helps

Svetoslav Petrov
  • 1,036
  • 1
  • 11
  • 33