Fix autofullscreen with MP4 for iPhones

This commit is contained in:
Alexey Khit
2023-02-03 11:41:17 +03:00
parent 2a20251dbd
commit 3240301f27
+2
View File
@@ -11,6 +11,7 @@
* - MediaSource for Safari iOS all
* - Customized built-in elements (extends HTMLVideoElement) because all Safari
* - Public class fields because old Safari (before 14.0)
* - Autoplay for Safari
*/
export class VideoRTC extends HTMLElement {
constructor() {
@@ -558,6 +559,7 @@ export class VideoRTC extends HTMLElement {
/** @type {HTMLVideoElement} */
const video2 = document.createElement("video");
video2.autoplay = true;
video2.playsInline = true;
video2.muted = true;
video2.addEventListener("loadeddata", ev => {