This commit is contained in:
tapframe 2025-10-16 12:21:05 +05:30
parent e2719c373d
commit d55143e6fb

View file

@ -86,7 +86,7 @@ const AndroidVideoPlayer: React.FC = () => {
}, [route.params]); }, [route.params]);
// TEMP: force React Native Video for testing (disable VLC) // TEMP: force React Native Video for testing (disable VLC)
const TEMP_FORCE_RNV = false; const TEMP_FORCE_RNV = false;
const TEMP_FORCE_VLC = true; const TEMP_FORCE_VLC = false;
const useVLC = Platform.OS === 'android' && !TEMP_FORCE_RNV && (TEMP_FORCE_VLC || forceVlc); const useVLC = Platform.OS === 'android' && !TEMP_FORCE_RNV && (TEMP_FORCE_VLC || forceVlc);
// Log player selection // Log player selection
@ -1614,7 +1614,7 @@ const AndroidVideoPlayer: React.FC = () => {
resizeModes = ['contain', 'cover']; resizeModes = ['contain', 'cover'];
} else { } else {
// On Android with VLC backend, only 'none' (original) and 'cover' (client-side crop) // On Android with VLC backend, only 'none' (original) and 'cover' (client-side crop)
resizeModes = useVLC ? ['none', 'cover'] : ['contain', 'cover', 'none']; resizeModes = useVLC ? ['none', 'cover'] : ['cover', 'none'];
} }
const currentIndex = resizeModes.indexOf(resizeMode); const currentIndex = resizeModes.indexOf(resizeMode);