Add Qt mac backend support, Safari/Chrome playback fixes, and AV1 reel updates

This commit is contained in:
2026-05-22 01:39:28 +00:00
parent eeed9f3ef7
commit 7eb81877fd
6 changed files with 89 additions and 38 deletions
+5 -5
View File
@@ -44,19 +44,19 @@ export function getVideoPreviewUrl(url: string): string {
export function getVideoSourceAttributes(path: string | null | undefined): VideoSourceAttributes {
if (!path) {
return { type: 'video/mp4; codecs="hvc1"', codecs: 'hvc1' };
return { type: 'video/mp4', codecs: 'hvc1' };
}
if (/\.webm$/i.test(path)) {
return { type: 'video/webm; codecs="av01"', codecs: 'av01' };
return { type: 'video/webm', codecs: 'av1' };
}
if (/\.mp4$/i.test(path) || /\.m4v$/i.test(path)) {
return { type: 'video/mp4; codecs="hvc1"', codecs: 'hvc1' };
return { type: 'video/mp4', codecs: 'hvc1' };
}
if (/\.mov$/i.test(path)) {
return { type: 'video/quicktime; codecs="hvc1"', codecs: 'hvc1' };
return { type: 'video/quicktime', codecs: 'hvc1' };
}
if (/\.avi$/i.test(path)) {
@@ -67,7 +67,7 @@ export function getVideoSourceAttributes(path: string | null | undefined): Video
return { type: 'video/x-matroska', codecs: '' };
}
return { type: 'video/mp4; codecs="hvc1"', codecs: 'hvc1' };
return { type: 'video/mp4', codecs: 'hvc1' };
}
/**