react-native-video-player icon indicating copy to clipboard operation
react-native-video-player copied to clipboard

Delay on video start

Open sourabhdadapure opened this issue 6 years ago • 6 comments

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),
    }}
/>

sourabhdadapure avatar Nov 29 '18 22:11 sourabhdadapure

Same issue! Any fixes yet ?

abishekraj avatar Feb 01 '19 04:02 abishekraj

Same issue

harishsn avatar Oct 14 '19 09:10 harishsn

@abishekraj @harishsn no, I ended up using react-native-video

sourabhdadapure avatar Oct 22 '19 20:10 sourabhdadapure

Is this happening on iOS, Android or both?

TheDanielMoli avatar Jun 11 '20 10:06 TheDanielMoli

Is this happening on iOS, Android or both?

Both

@TheRav3n

dushyantgadhia avatar Feb 01 '21 12:02 dushyantgadhia

@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}
/>

dushyantgadhia avatar Feb 04 '21 10:02 dushyantgadhia