-
Notifications
You must be signed in to change notification settings - Fork 170
Description
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
Video
https://github.com/user-attachments/assets/d48f050f-d108-497a-b6be-8d84dd78b53b
Device Info:
- Device: Amazon Fire Stick
- FireOS 8.1.2.7
react-native0.76.7react-native-youtube-iframe^2.2.2react-native-webview13.12.5expo~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