Skip to content

Playback doesn't start on Amazon FireOS #365

@emilhakobian

Description

@emilhakobian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions