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

Playback doesn't start on Amazon FireOS #365

Open
emilhakobian opened this issue Feb 20, 2025 · 0 comments
Open

Playback doesn't start on Amazon FireOS #365

emilhakobian opened this issue Feb 20, 2025 · 0 comments

Comments

@emilhakobian
Copy link

emilhakobian commented Feb 20, 2025

The issue
Playback doesn't start and loader spins infinitely when running on Amazon Fire Stick.
In app logs I can see "Buffering" event, but not "Playing".
I've tried on emulator and everything works fine.

Screenshots
Image

Image

Video
https://github.com/user-attachments/assets/d48f050f-d108-497a-b6be-8d84dd78b53b

Device Info:

  • Device: Amazon Fire Stick
  • FireOS 8.1.2.7
  • react-native 0.76.7
  • react-native-youtube-iframe ^2.2.2
  • react-native-webview 13.12.5
  • expo ~52.0.35

Additional context
Amazon Fire OS uses their own WebView (com.amazon.webview.chromium), I tried to disable it and enable com.google.chrome, but no luck.
I have tried all the available props, also WebViewProps, but no luck.

<YoutubePlayer mute={true} ref={playerRef} forceAndroidAutoplay={true} volume={0} height={500} play={true} videoId={'x22TJMv2RYo'} onReady={onReady} onError={(error) => console.log('WebView error: ', error)} webViewProps={{ originWhitelist: ['*'], mediaPlaybackRequiresUserAction: false, javaScriptEnabled: true, domStorageEnabled: true, androidHardwareAccelerationDisabled: true, allowsFullscreenVideo: true, cacheEnabled: true, androidLayerType: "software", userAgent: "Mozilla/5.0 (Linux; Android 4.2.2; AFTB Build/JDQ39) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.173 Mobile Safari/537.22 cordova-amazon-fireos/3.4.0 AmazonWebAppPlatform/3.4.0;2.0", }} initialPlayerParams={{ controls: false, }} onChangeState={onStateChange}></YoutubePlayer>

Here is also error from logcat

com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 2025-02-19 17:51:16.694 11232-11232 AWVMetrics...ybackEvent com.emilhakobian.yotube E Failed to start playback mActiveTimer false mEvent: com.amazon.webview.metrics.client.impl.MetricEventImpl@24fd277

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

1 participant