react-native-youtube-iframe icon indicating copy to clipboard operation
react-native-youtube-iframe copied to clipboard

Can not play with Amazon firestick

Open rajscet opened this issue 2 years ago • 7 comments

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):

  • Device: Amazon firestick
  • Android 9
  • react-native-youtube-iframe version
  • react-native-webview 2.2.2

rajscet avatar Jun 22 '22 06:06 rajscet

I have the same error

  • Device: FireTV
  • Android 9
  • react-native-youtube-iframe version: 2.2.2
  • react-native-webview version: 11.22.5

ant100 avatar Jul 14 '22 08:07 ant100

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

LonelyCpp avatar Sep 07 '22 11:09 LonelyCpp

nope, i think the issue is there

ant100 avatar Sep 12 '22 14:09 ant100

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.

LonelyCpp avatar Oct 24 '22 18:10 LonelyCpp

have somebody solve this issue? same here.

kiashan avatar May 14 '23 11:05 kiashan

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

hectoryx avatar Oct 15 '23 07:10 hectoryx

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

rajibmmatrix avatar Nov 24 '23 12:11 rajibmmatrix