Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-11937): Player Compatible with Metrological Platform / Horizon4 Platform? #181

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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