Skip to content

Commit d472d9f

Browse files
fix(build): 🚑 revert media player to html one
1 parent 53fddfe commit d472d9f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

components/notes/attachment.vue

+4-8
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
<img :src="attachment.url" :alt="attachment.description ?? undefined"
66
class="w-full h-full object-contain bg-muted/20" />
77
</DialogTrigger>
8-
<video-player v-else-if="attachment.type === 'video' || attachment.type === 'gifv'"
9-
:alt="attachment.description ?? undefined" class="w-full h-full object-cover bg-muted/20"
10-
src="attachment.url" controls :volume="0.6" />
8+
<video v-else-if="attachment.type === 'video' || attachment.type === 'gifv'" :src="attachment.url"
9+
:alt="attachment.description ?? undefined" class="w-full h-full object-cover bg-muted/20" controls />
1110
<audio v-else-if="attachment.type === 'audio'" :src="attachment.url"
1211
:alt="attachment.description ?? undefined" class="w-full h-full object-cover bg-muted/20" controls />
1312
<DialogTrigger v-else :as-child="true">
@@ -47,9 +46,8 @@
4746
<div class="flex items-center justify-center overflow-hidden *:max-h-[80vh] *:max-w-[80vw]">
4847
<img v-if="attachment.type === 'image'" :src="attachment.url" :alt="attachment.description ?? ''"
4948
class="object-contain" />
50-
<video-player v-else-if="attachment.type === 'video' || attachment.type === 'gifv'"
51-
:alt="attachment.description ?? undefined" class="w-full h-full object-cover bg-muted/20"
52-
src="attachment.url" controls :volume="0.6" />
49+
<video v-else-if="attachment.type === 'video' || attachment.type === 'gifv'" :src="attachment.url"
50+
:alt="attachment.description ?? ''" class="object-cover" controls />
5351
<audio v-else-if="attachment.type === 'audio'" :src="attachment.url" :alt="attachment.description ?? ''"
5452
class="object-cover" controls />
5553
<div v-else class="flex flex-col items-center justify-center">
@@ -80,8 +78,6 @@ import {
8078
DialogTrigger,
8179
} from "../ui/dialog";
8280
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";
83-
import { VideoPlayer } from '@videojs-player/vue'
84-
import 'video.js/dist/video-js.css'
8581
8682
defineProps<{
8783
attachment: Attachment;

0 commit comments

Comments
 (0)