admin管理员组文章数量:1352126
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.
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.
Share Improve this question edited Jun 26, 2018 at 7:40 user7637745 9852 gold badges14 silver badges27 bronze badges asked Jun 8, 2015 at 21:33 Marcus RommelMarcus Rommel 1,2941 gold badge12 silver badges17 bronze badges 14- A link to your site would help. Sounds like a basic server problem, however, or some sort of timing issue with the CMS. – MisterNeutron Commented Jun 8, 2015 at 22:27
- Added a link in my question – Marcus Rommel Commented Jun 8, 2015 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 Commented Jun 9, 2015 at 0:00
- 1 I would advise upgrading from 6.3 to 6.12 - account.jwplayer. – emaxsaun Commented Jun 9, 2015 at 14:45
- Hello Ethan. We updated our version but the error is still occurring. Any suggestions? – Marcus Rommel Commented Jun 10, 2015 at 15:51
1 Answer
Reset to default 1I 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
本文标签: javascriptJW Player Error loading media File could not be playedStack Overflow
版权声明:本文标题:javascript - JW Player Error loading media: File could not be played - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743894253a2557492.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论