dev可以正常播放音频

This commit is contained in:
Your Name
2025-08-18 12:20:56 +08:00
parent 5795061602
commit 6d4c44427c

View File

@@ -14,7 +14,7 @@
<video
v-if="currentVideo"
ref="videoElement"
class="w-full h-full object-contain"
class="w-full h-full object-contain bg-black"
:src="videoSrc"
:volume="volume / 100"
:loop="isLooping"
@@ -77,6 +77,12 @@
</div>
<div>Loop: {{ isLooping ? 'On' : 'Off' }}</div>
<div>Fullscreen: {{ isFullscreen ? 'On' : 'Off' }}</div>
<div v-if="videoElement">
Video: {{ videoElement.videoWidth }}x{{ videoElement.videoHeight }}
</div>
<div v-if="currentVideo">
Src: {{ videoSrc }}
</div>
</div>
</div>
</template>