Skip to content

Commit

Permalink
FEC-13956: Add window before MediaSource
Browse files Browse the repository at this point in the history
  • Loading branch information
MosheMaorKaltura committed May 23, 2024
1 parent 27760fb commit 80175a3
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 80175a3

Please sign in to comment.