Merge pull request #113 from shumaiOne/fix/video-player-mime-type

fix(webui): force video-player mime type to video/mp4
This commit is contained in:
Yiling-J
2026-06-15 23:23:57 +08:00
committed by GitHub
@@ -470,7 +470,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
sources: [
{
src: state.currentSrc,
type: data.media?.mimeType || 'video/mp4',
type: 'video/mp4',
},
],
}))
@@ -732,7 +732,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
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.currentTime(currentTime)