fix(webui): force video-player mime type to video/mp4 for transcode compatibility

This commit is contained in:
yiling
2026-06-15 23:17:44 +08:00
parent 2220d35e40
commit d0931b7181
@@ -470,7 +470,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
sources: [ sources: [
{ {
src: state.currentSrc, src: state.currentSrc,
type: data.media?.mimeType || 'video/mp4', type: 'video/mp4',
}, },
], ],
})) }))
@@ -732,7 +732,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
currentSrc: res.url, currentSrc: res.url,
})) }))
player.src({ type: data.media?.mimeType || 'video/mp4', src: res.url }) player.src({ type: 'video/mp4', src: res.url })
player.one('loadedmetadata', () => { player.one('loadedmetadata', () => {
player.currentTime(currentTime) player.currentTime(currentTime)