mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-05 17:59:06 +00:00
fix movie trailers quality in hero section remove scaling
This commit is contained in:
parent
642f4ce7aa
commit
33fa8a0826
1 changed files with 3 additions and 8 deletions
|
|
@ -385,11 +385,8 @@ const TrailerPlayer = React.forwardRef<any, TrailerPlayerProps>(({
|
||||||
}
|
}
|
||||||
return { uri: trailerUrl } as any;
|
return { uri: trailerUrl } as any;
|
||||||
})()}
|
})()}
|
||||||
style={[
|
style={styles.video}
|
||||||
styles.video,
|
resizeMode="contain"
|
||||||
contentType === 'movie' && styles.movieVideoScale,
|
|
||||||
]}
|
|
||||||
resizeMode="cover"
|
|
||||||
paused={!isPlaying}
|
paused={!isPlaying}
|
||||||
repeat={false}
|
repeat={false}
|
||||||
muted={isMuted}
|
muted={isMuted}
|
||||||
|
|
@ -519,9 +516,7 @@ const styles = StyleSheet.create({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
},
|
},
|
||||||
movieVideoScale: {
|
|
||||||
transform: [{ scale: 1.30 }], // Custom scale for movies to crop black bars
|
|
||||||
},
|
|
||||||
videoOverlay: {
|
videoOverlay: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: 0,
|
top: 0,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue