TheWidlarzGroup / react-native-video-player

A video player for React Native with controls
MIT License
516 stars 317 forks source link

Delay on video start #105

Open sourabhdadapure opened 5 years ago

sourabhdadapure commented 5 years ago

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),
    }}
/>
abishekraj commented 5 years ago

Same issue! Any fixes yet ?

harishsn commented 5 years ago

Same issue

sourabhdadapure commented 5 years ago

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

TheDanielMoli commented 4 years ago

Is this happening on iOS, Android or both?

dushyantgadhia commented 3 years ago

Is this happening on iOS, Android or both?

Both

@TheRav3n

dushyantgadhia commented 3 years ago

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