[英]Chrome: Uncaught (in promise) DOMException: Failed to load because no supported source was found
With the last Chrome update (Version 58.0.3029.96 (64-bit)), when I try to play (not autoplay) a video using jplayer, I obtaining this exception in Chrome console and I'm not able to play the video.在上次 Chrome 更新(版本 58.0.3029.96(64 位))中,当我尝试使用 jplayer 播放(而不是自动播放)视频时,我在 Chrome 控制台中收到此异常,但无法播放视频。 I hadn't this problem (and no warning) in Chrome until friday.
直到星期五,我才在 Chrome 中遇到这个问题(也没有警告)。 I haven't this problem in Firefox and Internet Explorer where I can see normally the video.
我在 Firefox 和 Internet Explorer 中没有这个问题,我可以正常看到视频。
I have just tried this: DOMException: Failed to load because no supported source was found , but I am still not able to see the video我刚刚试过这个: DOMException: Failed to load because no supported source was found ,但我仍然看不到视频
Thanks in advance提前致谢
Here is a simple Video Player in html and jquery, i think its a easy workarround, may it help you.这是一个简单的 html 和 jquery 视频播放器,我认为它是一个简单的解决方法,可以帮助你。
$(document).ready(function(){
var vidurlmp4 = "../beispieldateien/jh-seo.mp4"; // Change the Url to your video / ändere die adresse zu
$('#video-player').html('<video controls> <source src='+vidurlmp4+' type="video/mp4"></video>');
}); });
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.