LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
598 stars 153 forks source link

Can not play with Amazon firestick #262

Open rajscet opened 2 years ago

rajscet commented 2 years ago

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 notworking

Smartphone (please complete the following information):

ant100 commented 2 years ago

I have the same error

LonelyCpp commented 1 year ago

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 }}
/>
ant100 commented 1 year ago

nope, i think the issue is there

LonelyCpp commented 1 year ago

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.

kiashan commented 1 year ago

have somebody solve this issue? same here.

hectoryx commented 10 months ago

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 
/>
rajibmmatrix commented 9 months ago

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