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;
|
onEnterPictureInPicture?: () => void;
|
||||||
isBuffering?: boolean;
|
isBuffering?: boolean;
|
||||||
imdbId?: string;
|
imdbId?: string;
|
||||||
|
onLock?: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
||||||
|
|
@ -120,6 +121,7 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
||||||
onEnterPictureInPicture,
|
onEnterPictureInPicture,
|
||||||
isBuffering = false,
|
isBuffering = false,
|
||||||
imdbId,
|
imdbId,
|
||||||
|
onLock,
|
||||||
}) => {
|
}) => {
|
||||||
const { currentTheme } = useTheme();
|
const { currentTheme } = useTheme();
|
||||||
const { settings } = useSettings();
|
const { settings } = useSettings();
|
||||||
|
|
@ -680,6 +682,16 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
|
||||||
<PlayerEpisodesIcon width={24} height={24} />
|
<PlayerEpisodesIcon width={24} height={24} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* Lock Button */}
|
||||||
|
{onLock && (
|
||||||
|
<TouchableOpacity
|
||||||
|
style={styles.iconButton}
|
||||||
|
onPress={onLock}
|
||||||
|
>
|
||||||
|
<Ionicons name="lock-closed-outline" size={24} color="white" />
|
||||||
|
</TouchableOpacity>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</LinearGradient>
|
</LinearGradient>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue