From 13aafcfd7e5016244b78bb3738d471ffb48193d4 Mon Sep 17 00:00:00 2001 From: david-hm-morgan <37144605+david-hm-morgan@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:51:54 +0100 Subject: [PATCH] fix: Fix vp09 playback on webOS (#3566) Skip the vp09 polyfill for isTypeSupported on this platform. --- lib/polyfill/mediasource.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/polyfill/mediasource.js b/lib/polyfill/mediasource.js index ecd30c6e7a..ec30a699a8 100644 --- a/lib/polyfill/mediasource.js +++ b/lib/polyfill/mediasource.js @@ -208,6 +208,12 @@ shaka.polyfill.MediaSource = class { static patchVp09_() { const originalIsTypeSupported = MediaSource.isTypeSupported; + if (shaka.util.Platform.isWebOS()) { + // Don't do this on LG webOS as otherwise it is unable + // to play vp09 at all. + return; + } + MediaSource.isTypeSupported = (mimeType) => { // Split the MIME type into its various parameters. const pieces = mimeType.split(/ *; */);