This commit is contained in:
kakkokari-gtyih 2024-07-06 11:36:32 +09:00
parent 44d8f390cb
commit 686ae3cb46
2 changed files with 6 additions and 5 deletions

View file

@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:class="$style.nativeAudio"
@keydown.prevent
>
<source :src="audio.url">
<source :src="audio.url" :type="audio.type">
</audio>
</div>
@ -39,8 +39,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<audio
ref="audioEl"
preload="metadata"
tabindex="-1"
@keydown.prevent
>
<source :src="audio.url">
<source :src="audio.url" :type="audio.type">
</audio>
<div :class="[$style.controlsChild, $style.controlsLeft]">
<button class="_button" :class="$style.controlButton" @click="togglePlayPause">

View file

@ -33,12 +33,11 @@ SPDX-License-Identifier: AGPL-3.0-only
:poster="video.thumbnailUrl ?? undefined"
:title="video.comment ?? undefined"
:alt="video.comment"
tabindex="-1"
preload="metadata"
controls
@keydown.prevent
>
<source :src="video.url">
<source :src="video.url" :type="audio.type">
</video>
<i class="ti ti-eye-off" :class="$style.hide" @click="hide = true"></i>
<div :class="$style.indicators">
@ -60,7 +59,7 @@ SPDX-License-Identifier: AGPL-3.0-only
@keydown.prevent
@click.self="togglePlayPause"
>
<source :src="video.url">
<source :src="video.url" :type="audio.type">
</video>
<button v-if="isReady && !isPlaying" class="_button" :class="$style.videoOverlayPlayButton" @click="togglePlayPause"><i class="ti ti-player-play-filled"></i></button>
<div v-else-if="!isActuallyPlaying" :class="$style.videoLoading">