【问题标题】:Chrome: Uncaught (in promise) DOMException: Failed to load because no supported source was foundChrome:未捕获(承诺)DOMException:加载失败,因为找不到支持的源
【发布时间】:2017-10-02 23:22:59
【问题描述】:

在最近一次 Chrome 更新(版本 58.0.3029.96(64 位))中,当我尝试使用 jplayer 播放(不是自动播放)视频时,我在 Chrome 控制台中获得了这个异常并且我无法播放视频。直到星期五,我在 Chrome 中没有这个问题(也没有警告)。我在 Firefox 和 Internet Explorer 中没有这个问题,我可以正常看到视频。

我刚刚试过这个:DOMException: Failed to load because no supported source was found,但我还是看不到视频

提前致谢

【问题讨论】:

    标签: javascript jquery html google-chrome jplayer


    【解决方案1】:

    这是一个简单的 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>');
    

    });

    你可以测试here

    【讨论】:

      猜你喜欢
      • 2018-06-25
      • 1970-01-01
      • 2016-10-07
      • 1970-01-01
      • 1970-01-01
      • 2020-12-30
      • 2017-07-27
      • 1970-01-01
      • 2017-02-03
      相关资源
      最近更新 更多