mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-29 13:59:58 +00:00
Remove playback speed state and related props from VideoPlayer and PlayerControls components for cleaner code and improved maintainability.
This commit is contained in:
parent
2d71a64af8
commit
9e19628b46
2 changed files with 0 additions and 10 deletions
|
|
@ -64,7 +64,6 @@ const VideoPlayer: React.FC = () => {
|
|||
const [currentTime, setCurrentTime] = useState(0);
|
||||
const [duration, setDuration] = useState(0);
|
||||
const [showControls, setShowControls] = useState(true);
|
||||
const [playbackSpeed, setPlaybackSpeed] = useState(1);
|
||||
const [audioTracks, setAudioTracks] = useState<AudioTrack[]>([]);
|
||||
const [selectedAudioTrack, setSelectedAudioTrack] = useState<number | null>(null);
|
||||
const [textTracks, setTextTracks] = useState<TextTrack[]>([]);
|
||||
|
|
@ -1004,7 +1003,6 @@ const VideoPlayer: React.FC = () => {
|
|||
streamName={currentStreamName}
|
||||
currentTime={currentTime}
|
||||
duration={duration}
|
||||
playbackSpeed={playbackSpeed}
|
||||
zoomScale={zoomScale}
|
||||
vlcAudioTracks={vlcAudioTracks}
|
||||
selectedAudioTrack={selectedAudioTrack}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ interface PlayerControlsProps {
|
|||
streamName?: string;
|
||||
currentTime: number;
|
||||
duration: number;
|
||||
playbackSpeed: number;
|
||||
zoomScale: number;
|
||||
vlcAudioTracks: Array<{id: number, name: string, language?: string}>;
|
||||
selectedAudioTrack: number | null;
|
||||
|
|
@ -55,7 +54,6 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
|||
streamName,
|
||||
currentTime,
|
||||
duration,
|
||||
playbackSpeed,
|
||||
zoomScale,
|
||||
vlcAudioTracks,
|
||||
selectedAudioTrack,
|
||||
|
|
@ -176,12 +174,6 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
|||
<View style={styles.bottomControls}>
|
||||
{/* Bottom Buttons Row */}
|
||||
<View style={styles.bottomButtons}>
|
||||
{/* Speed Button */}
|
||||
<TouchableOpacity style={styles.bottomButton}>
|
||||
<Ionicons name="speedometer" size={20} color="white" />
|
||||
<Text style={styles.bottomButtonText}>Speed ({playbackSpeed}x)</Text>
|
||||
</TouchableOpacity>
|
||||
|
||||
{/* Fill/Cover Button - Updated to show fill/cover modes */}
|
||||
<TouchableOpacity style={styles.bottomButton} onPress={cycleAspectRatio}>
|
||||
<Ionicons name="resize" size={20} color="white" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue