Home > front end >  In HTML automatically insert background music playback, if the video playback, background music auto
In HTML automatically insert background music playback, if the video playback, background music auto

Time:09-28

In HTML automatically insert background music playback, if the video playback, background music automatically stop, stop video playback, background music sounded again

CodePudding user response:

 
Video object. AddEventListener (" play ", function (e) {
Background music object. Pause ();
}, false);
Video object. AddEventListener (" pause ", function (e) {
The background music. Play ();
}, false);
  • Related