Z-Index fix

This commit is contained in:
tapframe 2025-09-15 12:07:26 +05:30
parent a5dc2c4d66
commit 3ea069926b
3 changed files with 26 additions and 16 deletions

View file

@ -2957,6 +2957,7 @@ const AndroidVideoPlayer: React.FC = () => {
right: 8 + insets.right,
opacity: nextEpisodeButtonOpacity,
transform: [{ scale: nextEpisodeButtonScale }],
zIndex: 50,
}}
>
<TouchableOpacity

View file

@ -2614,6 +2614,7 @@ const VideoPlayer: React.FC = () => {
right: 8 + insets.right,
opacity: nextEpisodeButtonOpacity,
transform: [{ scale: nextEpisodeButtonScale }],
zIndex: 50,
}}
>
<TouchableOpacity

View file

@ -940,6 +940,11 @@ export const StreamsScreen = () => {
const isMkvByPath = lowerUri.includes('.mkv') || /[?&]ext=mkv\b/.test(lowerUri) || /format=mkv\b/.test(lowerUri) || /container=mkv\b/.test(lowerUri);
const isMkvFile = Boolean(isMkvByHeader || isMkvByPath);
// Special case: moviebox should always use AndroidVideoPlayer
if (streamProvider === 'moviebox') {
forceVlc = false;
logger.log(`[StreamsScreen] Provider ${streamProvider} -> always using AndroidVideoPlayer`);
} else {
// Also check if the provider declares MKV format support
let providerSupportsMkv = false;
try {
@ -956,6 +961,9 @@ export const StreamsScreen = () => {
if (isMkvFile || providerSupportsMkv) {
forceVlc = true;
logger.log(`[StreamsScreen] Stream is MKV format (detected: ${isMkvFile}, provider supports: ${providerSupportsMkv}) -> forcing VLC`);
} else {
logger.log(`[StreamsScreen] Stream is NOT MKV format (detected: ${isMkvFile}, provider supports: ${providerSupportsMkv}) -> using AndroidVideoPlayer`);
}
}
}
} catch (e) {