mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
chore: suggest changes to Stream State
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
parent
7df70d6177
commit
5b12aa492f
1 changed files with 5 additions and 4 deletions
|
|
@ -180,16 +180,17 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
dispatch({ type: 'setProp', propName: 'selectedSubtitlesTrackId', propValue: id });
|
||||
dispatch({ type: 'setProp', propName: 'selectedExtraSubtitlesTrackId', propValue: null });
|
||||
streamStateChanged({
|
||||
subtitleTrackId: id,
|
||||
extraSubtitleTrackId: null,
|
||||
subtitleTrack: { type: 'Embedded', id }
|
||||
// extraSubtitleTrackId: null,
|
||||
});
|
||||
}, [streamStateChanged]);
|
||||
const onExtraSubtitlesTrackSelected = React.useCallback((id) => {
|
||||
dispatch({ type: 'setProp', propName: 'selectedSubtitlesTrackId', propValue: null });
|
||||
dispatch({ type: 'setProp', propName: 'selectedExtraSubtitlesTrackId', propValue: id });
|
||||
streamStateChanged({
|
||||
subtitleTrackId: null,
|
||||
extraSubtitleTrackId: id,
|
||||
subtitleTrack: { type: 'External', id }
|
||||
// subtitleTrackId: null,
|
||||
// extraSubtitleTrackId: id,
|
||||
});
|
||||
}, []);
|
||||
const onAudioTrackSelected = React.useCallback((id) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue