Buffer Indicator behaviour fix while controls are hidden

This commit is contained in:
tapframe 2026-01-27 15:57:00 +05:30
parent de576915d5
commit c6b45340ba
2 changed files with 2 additions and 2 deletions

View file

@ -883,7 +883,7 @@ const AndroidVideoPlayer: React.FC = () => {
{/* Buffering Indicator (Visible when controls are hidden) */}
{playerState.isBuffering && !playerState.showControls && (
<View style={[StyleSheet.absoluteFill, { justifyContent: 'center', alignItems: 'center', zIndex: 15 }]}>
<View pointerEvents="none" style={[StyleSheet.absoluteFill, { justifyContent: 'center', alignItems: 'center', zIndex: 15 }]}>
<ActivityIndicator size="large" color="#FFFFFF" />
</View>
)}

View file

@ -825,7 +825,7 @@ const KSPlayerCore: React.FC = () => {
<View pointerEvents="box-none" style={StyleSheet.absoluteFill}>
{/* Buffering Indicator (Visible when controls are hidden) */}
{isBuffering && !showControls && (
<View style={[StyleSheet.absoluteFill, { justifyContent: 'center', alignItems: 'center', zIndex: 15 }]}>
<View pointerEvents="none" style={[StyleSheet.absoluteFill, { justifyContent: 'center', alignItems: 'center', zIndex: 15 }]}>
<ActivityIndicator size="large" color="#FFFFFF" />
</View>
)}