react-native-youtube-iframe
react-native-youtube-iframe copied to clipboard
Can not play with Amazon firestick
Describe the bug Video is not loading in amazon firestick
To Reproduce Steps to reproduce the behavior:
Expected behavior Video is not load and not play with amazon firestick while work in android and ios smart tv
Screenshots
Smartphone (please complete the following information):
- Device: Amazon firestick
- Android 9
-
react-native-youtube-iframe
version -
react-native-webview
2.2.2
I have the same error
- Device: FireTV
- Android 9
- react-native-youtube-iframe version: 2.2.2
- react-native-webview version: 11.22.5
does it work with just a webview with the youtube URL?
eg:
<WebView
source={{ uri: 'https://www.youtube.com/embed/4FO6E7EsYaY }}
style={{ height: 100, width: 100 }}
/>
nope, i think the issue is there
looks like an issue with the underlying webview. Either the firestick doesn't support standard webview features, or there's a bug inside rn-webview package. Y'all can try opening an issue over there.
have somebody solve this issue? same here.
Hi @kiashan, I have been able to run the library on a firestick, just add forceAndroidAutoplay
<YoutubePlayer
width={dimensions.width}
height={dimensions.height}
videoId={'youtube_id'}
play
onChangeState={onStateChange}
forceAndroidAutoplay={true} // important
/>
Hi @kiashan, I have been able to run the library on a firestick, just add forceAndroidAutoplay
<YoutubePlayer width={dimensions.width} height={dimensions.height} videoId={'youtube_id'} play onChangeState={onStateChange} forceAndroidAutoplay={true} // important />
Some video are not working like this one - https://www.youtube.com/watch?v=0tIlu88BUWM&t=1s