Update VideoPlayer.vue, add play in line and ios MSE

This commit is contained in:
Spendable1569 2025-06-15 18:53:04 +08:00 committed by GitHub
parent 9fd8334f52
commit 59bdb94dd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,14 @@
class="relative max-h-screen w-full flex justify-center" class="relative max-h-screen w-full flex justify-center"
:class="{ 'player-container': !isEmbed }" :class="{ 'player-container': !isEmbed }"
> >
<video ref="videoEl" class="w-full" data-shaka-player :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" /> <video
ref="videoEl"
class="w-full"
data-shaka-player
:autoplay="shouldAutoPlay"
:loop="selectedAutoLoop"
playsinline
/>
<span <span
id="preview-container" id="preview-container"
ref="previewContainer" ref="previewContainer"
@ -318,7 +325,7 @@ export default {
streams.push(...this.video.audioStreams); streams.push(...this.video.audioStreams);
streams.push(...this.video.videoStreams); streams.push(...this.video.videoStreams);
const MseSupport = window.MediaSource !== undefined; const MseSupport = window.MediaSource !== undefined || window.ManagedMediaSource !== undefined;
const lbry = null; const lbry = null;