From aec16a426cd9de5ab193b1bfa3b963638128030a Mon Sep 17 00:00:00 2001 From: Yair Ansbacher Date: Tue, 1 Feb 2022 13:56:11 +0200 Subject: [PATCH] fix(FEC-11937): Player Compatible with Metrological Platform / Horizon4 Platform? (#181) add support for a specific webkit browser shaka says is not supported Solves FEC-11937 --- src/dash-adapter.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dash-adapter.js b/src/dash-adapter.js index 13504ff0..d9255708 100644 --- a/src/dash-adapter.js +++ b/src/dash-adapter.js @@ -1,6 +1,7 @@ // @flow import shaka from 'shaka-player'; import { + Env, AudioTrack, BaseMediaSourceAdapter, Error, @@ -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