Skip to content

Commit

Permalink
fix/FEC-13956:add window prefix MediaSource
Browse files Browse the repository at this point in the history
  • Loading branch information
MosheMaorKaltura authored May 23, 2024
1 parent 052a9e5 commit b77103d
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 b77103d

Please sign in to comment.