diff --git a/sample/videoUploading/main.ts b/sample/videoUploading/main.ts index 93d5ddb8..91cda303 100644 --- a/sample/videoUploading/main.ts +++ b/sample/videoUploading/main.ts @@ -10,6 +10,7 @@ quitIfWebGPUNotAvailable(adapter, device); // Set video element const video = document.createElement('video'); video.loop = true; +video.playsInline = true; video.autoplay = true; video.muted = true; video.src = '../../assets/video/pano.webm'; diff --git a/sample/videoUploading/video.ts b/sample/videoUploading/video.ts index 22481556..fadde5d9 100644 --- a/sample/videoUploading/video.ts +++ b/sample/videoUploading/video.ts @@ -7,6 +7,7 @@ export default async function ({ useVideoFrame }: { useVideoFrame: boolean }) { // Set video element const video = document.createElement('video'); video.loop = true; + video.playsInline = true; video.autoplay = true; video.muted = true; video.src = '../../assets/video/pano.webm';