Skip to content

Wrap HTMLMediaElement.play instead of Audio constructors

Fabian Vogt requested to merge work/fvogt/mediaplayoverwite into master

If an audio element is not part of the DOM, the only ways to get it to play is to use the play method or paused = false. For now just wrap the play method, which is more likely to be used.

This avoids having to wrap window.Audio and document.createElement, which is reported to break pages.

BUG: 487303

Merge request reports