简体   繁体   English

Chrome:未捕获(承诺)DOMException:无法加载,因为找不到支持的源

[英]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>');

}); });

You can test here你可以在这里测试

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Chrome:未捕获(承诺)DOMException:由于找不到受支持的源而无法加载 - Android Chrome : Uncaught (in promise) DOMException: Failed to load because no supported source was found 在 Vue 中播放声音 onClick 事件返回 Uncaught (in promise) DOMException: Failed to load because no supported source was found - playing sound onClick event in Vue returns Uncaught (in promise) DOMException: Failed to load because no supported source was found 播放带有特殊字符的音频时,“(未承诺)DOMException:未能加载,因为找不到支持的源” - “Uncaught (in promise) DOMException: Failed to load because no supported source was found” when playing an audio with special characters DOMException:加载失败,因为未找到支持的源 - DOMException: Failed to load because no supported source was found 无法加载音频 - DOMException:无法加载,因为找不到支持的源 - Cant load Audio - DOMException: Failed to load because no supported source was found DOMException:加载失败,因为在 html 文件中找不到受支持的源 - DOMException: Failed to load because no supported source was found in html file 加载失败,因为找不到支持的源 - Failed to load because no supported source was found Phonegap视频“由于找不到支持的来源而无法加载” - Phonegap Video “Failed to load because no supported source was found” 如何处理“未捕获(承诺)DOMException:play() 失败,因为用户没有首先与文档交互。” 在桌面上使用 Chrome 66? - How to handle "Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first." on Desktop with Chrome 66? 如何处理“未捕获(承诺)DOMException:play() 失败,因为用户没有先与文档交互。”? - How to handle “Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM