@mux/playback-core
Advanced tools
Comparing version 0.9.1-canary.10-8e82f44 to 0.9.1-canary.10-96691c3
{ | ||
"name": "@mux/playback-core", | ||
"version": "0.9.1-canary.10-8e82f44", | ||
"version": "0.9.1-canary.10-96691c3", | ||
"description": "Core library for media playback in the browser shared by mux elements", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
@@ -200,7 +200,6 @@ import '@mux/polyfills'; | ||
const hlsSupported = Hls.isSupported(); | ||
// NOTE: Native HLS playback on Android for LL-HLS has been flaky, so we're prefering | ||
// MSE for those conditions for now. (CJP) | ||
// NOTE: Native HLS playback on Android can be flaky, so we're just always prefering MSE. (CJP) | ||
const userAgentStr = window?.navigator?.userAgent ?? ''; | ||
const isAndroid = userAgentStr.toLowerCase().indexOf('android') !== -1; | ||
const defaultPreferMse = isAndroid && streamType === StreamTypes.LL_LIVE; | ||
const defaultPreferMse = isAndroid; | ||
@@ -207,0 +206,0 @@ // We should use native playback for hls media sources if we a) can use native playback and don't also b) prefer to use MSE/hls.js if/when it's supported |
41240
758