mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 18:08:24 +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: [
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user