简体   繁体   中英

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. I hadn't this problem (and no warning) in Chrome until friday. I haven't this problem in Firefox and Internet Explorer where I can see normally the video.

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

Thanks in advance

Here is a simple Video Player in html and jquery, i think its a easy workarround, may it help you.

$(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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM