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

Can not play with Amazon firestick #262

Open
rajscet opened this issue Jun 22, 2022 · 7 comments
Open

Can not play with Amazon firestick #262

rajscet opened this issue Jun 22, 2022 · 7 comments

Comments

@rajscet
Copy link

rajscet commented Jun 22, 2022

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
@ant100
Copy link

ant100 commented Jul 14, 2022

I have the same error

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

@LonelyCpp
Copy link
Owner

LonelyCpp commented Sep 7, 2022

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
Copy link

ant100 commented Sep 12, 2022

nope, i think the issue is there

@LonelyCpp
Copy link
Owner

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
Copy link

kiashan commented May 14, 2023

have somebody solve this issue?
same here.

@hectoryx
Copy link

hectoryx commented Oct 15, 2023

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
Copy link

rajibmmatrix commented Nov 24, 2023

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

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

No branches or pull requests

7 participants
@ant100 @rajscet @LonelyCpp @kiashan @hectoryx @rajibmmatrix and others