Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Uncaught (in promise) DOMException: Failed to load because no supported source was found.

var playPromise = document.querySelector('video').play();

// In browsers that don’t yet support this functionality,
// playPromise won’t be defined.
if (playPromise !== undefined) {
  playPromise.then(function() {
    // Automatic playback started!
  }).catch(function(error) {
    // Automatic playback failed.
    // Show a UI element to let the user manually start playback.
  });
}
Source by developers.google.com #
 
PREVIOUS NEXT
Tagged: #Uncaught #Failed #load #supported #source
ADD COMMENT
Topic
Name
9+4 =