mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 13:34:33 +00:00
fix(webui): force video-player mime type to video/mp4 for transcode compatibility
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user