react-native-video-player
react-native-video-player copied to clipboard
Delay on video start
there's a two second delay on Video start when clicked on the play button. Is this the default behavior?
My code
<VideoPlayer
ref={r => (this.player = r)}
video={{uri:VideoURI}}}
thumbnail={{uri:ThumbnailURI}}
resizeMode="cover"
autoplay={false}
endWithThumbnail
disableBack
disableFullscreen
pauseOnPress
playInBackground={false}
style={{
width: scale(295),
height: verticalScale(200),
}}
/>
Same issue! Any fixes yet ?
Same issue
@abishekraj @harishsn
no, I ended up using react-native-video
Is this happening on iOS, Android or both?
Is this happening on iOS, Android or both?
Both
@TheRav3n
@sourabhdadapure @harishsn @abishekraj
This worked for me.
import convertToProxyURL from 'react-native-video-cache';
<VideoPlayer
ref={r => (this.player = r)}
video={{uri: convertToProxyURL(VideoURI), cache: true}}
playInBackground={false}
automaticallyWaitsToMinimizeStalling={false}
rate={1.0}
/>