Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android always autoPlay #35

Closed
sulagarde opened this issue Mar 26, 2020 · 2 comments
Closed

Android always autoPlay #35

sulagarde opened this issue Mar 26, 2020 · 2 comments

Comments

@sulagarde
Copy link

Hi,

I encountered a problem with Android: It seems like is entering autoPlay even if it set to false.
Everything works perfect on iOs

Here is implementation:

<YouTubePlayer
    videoId={videoId}
    fullscreen
    startTime={5}
    style={{ width: '100%', height: isTalk ? 150 : 200 }}
    onReady={(e) => console.log('onReady', e)}
    onError={(e) => console.log('onError', e.error)}
    onChangeState={(e) => console.log('onChangeState', e.state)}
    onChangeFullscreen={(e) => console.log('onChangeFullscreen', e.isFullscreen)}
/>

versions:
react-native-youtube-sdk: 1.0.4
react-native: 0.60.6

@s-aleinik
Copy link

s-aleinik commented Apr 1, 2020

Have the same issue. Android always autoplay, iOS is fine. Have noticed, that setting fullscreen to false for android also prevents autoPlay.

android: 9
react-native: 0.61.5
react-native-youtube-sdk: 1.0.6

@srfaytkn
Copy link
Member

we fixed the bug, use version 1.0.8 @s-aleinik @sulagarde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants