Skip to content

Commit

Permalink
fix: Fix vp09 playback on webOS (shaka-project#3566)
Browse files Browse the repository at this point in the history
Skip the vp09 polyfill for isTypeSupported on this platform.
  • Loading branch information
david-hm-morgan committed Oct 18, 2021
1 parent 9c3bed3 commit 13aafcf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/polyfill/mediasource.js
Expand Up @@ -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(/ *; */);
Expand Down

0 comments on commit 13aafcf

Please sign in to comment.