https://diff.wikimedia.org/2022/07/27/wikimedia-media-playback-now-brought-to-you-with-video-js/
[Error] Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. (anonymous function) rejectPromise play initAudioContext (load.php:4:890) (anonymous function) (load.php:254:306) (anonymous function) (load.php:5:1177) each (load.php:277:290) (anonymous function) (load.php:5:1068) mightThrow (load.php:321:887) (anonymous function) (load.php:322:555)
When the device tries to start ogvjs inside the iframe, it tries to use an audiocontext. But when embedded inside an iframe, we cannot use an audiocontext until there has been an interaction with the iframe.
This happens inside InlinePlayer.prototype.infuse
if (!mw.OgvJsSupport.isMediaNativelySupported(this.videoplayer)) {
this.playerConfig.ogvjs = {
base: mw.OgvJsSupport.basePath(),
audioContext: mw.OgvJsSupport.initAudioContext()
};
this.playerConfig.techOrder.push('ogvjs');
this.playerConfig.controlBar.pictureInPictureToggle = false;
}ext.tmh.OgvJsSupport
it fails on the .play() of the silence (which makes sense).
This is an embed specific problem, as there we try to load the player immediately. Failing isn't necessarily a problem, but it seems it breaks the loading of the entire ogvjs module, and it can't start even after pressing the big play button