React-native-youtube: React Native Youtube Player iOS Autoplay false

Created on 3 Feb 2018  路  10Comments  路  Source: davidohayon669/react-native-youtube

In my app the video is played automatically when the activity is opened. I have added the code autoplay = false. But its not working. Any Solutions??

Most helpful comment

@davidohayon669
I tried play = {false} its working in Android but not in iOS

All 10 comments

@vishnumm93 There is no autoplay prop. Did you try play={false}?

i just put play={false] but doesn't work

@phanoophong @vishnumm93 Can you reproduce this behaviour in the example app in this repo?

If I set play={false} the video never auto-starts

screen shot 2018-02-05 at 23 15 31

@davidohayon669
I tried play = {false} its working in Android but not in iOS

@vishnumm93 can't think of anything.. If you try the example app in this repo, does it behave the same?

this still happens on 1.1.0. play={false} is ignored on iOS after initial load

The same is happening with me for IOS. Is there some work around?

Should this issue stay without any response?

handleReady = () => { this._youTubeRef.reloadIframe(); }

I resolved the problem like this
videoId={ this.state.isGuidePlaying ? this.state.guide.url : null}

But I had to cover thumbnail image on player before start playing

Was this page helpful?
0 / 5 - 0 ratings