'How to fit video poster to video player height in expo react native video player
I'm using https://github.com/ihmpavel/expo-video-player this library to add video player in react native app and setting poster image to video player. as shown below:
<VideoPlayer
videoProps={{
resizeMode: Video.RESIZE_MODE_CONTAIN,
source: {
uri: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
},
usePoster: true,
posterSource: {
uri: props.thumbnail,
},
posterStyle: {
width: FULL_WIDTH - 35,
height: FULL_WIDTH - 35,
},
}}
style={{
width: FULL_WIDTH - 35,
height: FULL_WIDTH - 35,
}}
defaultControlsVisible
/>
poster is displayed as below:
How to fit poster image in video player exactly?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
