Skip to content

Commit

Permalink
FEC-13956: Add window before MediaSource (#774)
Browse files Browse the repository at this point in the history
### Description of the Changes

Please add a detailed description of the change, whether it's an
enhancement or a bugfix.
If the PR is related to an open issue please link to it.

### CheckLists

- [ ] changes have been done against master branch, and PR does not
conflict
- [ ] new unit / functional tests have been added (whenever applicable)
- [ ] test are passing in local environment
- [ ] Travis tests are passing (or test results are not worse than on
master branch :))
- [ ] Docs have been updated
  • Loading branch information
MosheMaorKaltura authored May 23, 2024
1 parent 27760fb commit c334bfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class BaseMediaSourceAdapter extends FakeEventTarget implements I
public static isMSESupported(): boolean {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const mediaSource = MediaSource || window.WebKitMediaSource;
const mediaSource = window.MediaSource || window.WebKitMediaSource;
// isTypeSupported isn't exist or not a function for old MSE implementation
return !!mediaSource && typeof mediaSource.isTypeSupported === 'function';
}
Expand Down

0 comments on commit c334bfd

Please sign in to comment.