mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
feat: add player lock button
This commit is contained in:
parent
11c503cf71
commit
7eb0ab7668
1 changed files with 12 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ interface PlayerControlsProps {
|
|||
onEnterPictureInPicture?: () => void;
|
||||
isBuffering?: boolean;
|
||||
imdbId?: string;
|
||||
onLock?: () => void;
|
||||
}
|
||||
|
||||
export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
||||
|
|
@ -120,6 +121,7 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
|||
onEnterPictureInPicture,
|
||||
isBuffering = false,
|
||||
imdbId,
|
||||
onLock,
|
||||
}) => {
|
||||
const { currentTheme } = useTheme();
|
||||
const { settings } = useSettings();
|
||||
|
|
@ -680,6 +682,16 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
|||
<PlayerEpisodesIcon width={24} height={24} />
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
|
||||
{/* Lock Button */}
|
||||
{onLock && (
|
||||
<TouchableOpacity
|
||||
style={styles.iconButton}
|
||||
onPress={onLock}
|
||||
>
|
||||
<Ionicons name="lock-closed-outline" size={24} color="white" />
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
</LinearGradient>
|
||||
|
|
|
|||
Loading…
Reference in a new issue