mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Fix: Quicktime Video Play on Chrome
This commit is contained in:
parent
17124f3834
commit
9c245e6031
1 changed files with 6 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
|||
controls
|
||||
@contextmenu.stop
|
||||
>
|
||||
<source :src="media.url" :type="media.type" />
|
||||
<source :src="media.url" :type="mediaType" />
|
||||
</video>
|
||||
</VuePlyr>
|
||||
</template>
|
||||
|
@ -80,7 +80,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { watch, ref } from "vue";
|
||||
import { watch, ref, computed } from "vue";
|
||||
import VuePlyr from "vue-plyr";
|
||||
import "vue-plyr/dist/vue-plyr.css";
|
||||
import type * as misskey from "calckey-js";
|
||||
|
@ -107,6 +107,10 @@ const url =
|
|||
? getStaticImageUrl(props.media.thumbnailUrl)
|
||||
: props.media.thumbnailUrl;
|
||||
|
||||
const mediaType = computed(() => {
|
||||
return props.media.type === 'video/quicktime' ? 'video/mp4' : props.media.type;
|
||||
});
|
||||
|
||||
function captionPopup() {
|
||||
os.alert({
|
||||
type: "info",
|
||||
|
|
Loading…
Reference in a new issue