feat: add player lock button

This commit is contained in:
chrisk325 2026-03-22 15:49:49 +05:30 committed by GitHub
parent 11c503cf71
commit 7eb0ab7668
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>