fix: websockets now work globally with vlc and transcoded player

does not disconnect and reconnect every time you open and close the player
This commit is contained in:
Fredrik Burmester
2024-12-08 13:59:16 +01:00
parent 5afb677b3a
commit bd24f59199
7 changed files with 317 additions and 254 deletions

View File

@@ -66,7 +66,7 @@ interface Props {
ignoreSafeAreas?: boolean;
setIgnoreSafeAreas: React.Dispatch<React.SetStateAction<boolean>>;
enableTrickplay?: boolean;
togglePlay: (ticks: number) => void;
togglePlay: () => void;
setShowControls: (shown: boolean) => void;
offline?: boolean;
isVideoLoaded?: boolean;
@@ -538,7 +538,7 @@ export const Controls: React.FC<Props> = ({
<TouchableOpacity
onPress={() => {
togglePlay(progress.value);
togglePlay();
}}
>
{!isBuffering ? (