mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
Added disable option when on image based subg on transcoding
This commit is contained in:
@@ -109,7 +109,6 @@ const DropdownView: React.FC<DropdownViewProps> = ({ showControls }) => {
|
||||
IsTextSubtitleStream: x.IsTextSubtitleStream,
|
||||
} as TranscodedSubtitle)
|
||||
);
|
||||
|
||||
return [...textSubtitles, ...imageSubtitles];
|
||||
}
|
||||
|
||||
@@ -119,7 +118,10 @@ const DropdownView: React.FC<DropdownViewProps> = ({ showControls }) => {
|
||||
IsTextSubtitleStream: x.IsTextSubtitleStream!,
|
||||
}));
|
||||
|
||||
return transcodedSubtitle;
|
||||
return [
|
||||
{ name: 'Disable', index: -1, IsTextSubtitleStream: true } as TranscodedSubtitle,
|
||||
...transcodedSubtitle
|
||||
];
|
||||
}, [item, isVideoLoaded, subtitleTracks, mediaSource?.MediaStreams]);
|
||||
|
||||
const ChangeTranscodingSubtitle = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user