Skip to content

Commit

Permalink
fix(FEC-11937): Player Compatible with Metrological Platform / Horizo…
Browse files Browse the repository at this point in the history
…n4 Platform? (#181)

add support for a specific webkit browser shaka says is not supported 

Solves FEC-11937
  • Loading branch information
yairans authored Feb 1, 2022
1 parent f28fb91 commit aec16a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dash-adapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @flow
import shaka from 'shaka-player';
import {
Env,
AudioTrack,
BaseMediaSourceAdapter,
Error,
Expand Down Expand Up @@ -367,10 +368,15 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
if (resetVttPolyfill) {
window.VTTCue = undefined;
}
isSupported = isSupported || DashAdapter._isSupportedBrowser();
DashAdapter._logger.debug('isSupported:' + isSupported);
return isSupported;
}

static _isSupportedBrowser(): boolean {
return Env.browser.name === 'Safari' && Env.os.name === 'Linux';
}

/**
* @constructor
* @param {HTMLVideoElement} videoElement - The video element which bind to the dash adapter
Expand Down

0 comments on commit aec16a4

Please sign in to comment.