Skip to content

Commit

Permalink
feat(player): include ManagedMediaSource in hls support check
Browse files Browse the repository at this point in the history
closes #961
  • Loading branch information
mihar-22 committed Nov 10, 2023
1 parent f81d533 commit a43a05f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vidstack/src/utils/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export async function canChangeVolume() {
* @see {@link https://github.com/video-dev/hls.js/blob/master/src/is-supported.ts}
*/
export function getMediaSource(): typeof MediaSource | undefined {
return __SERVER__ ? undefined : window?.MediaSource ?? window?.WebKitMediaSource;
return __SERVER__
? undefined
: (window as any)?.ManagedMediaSource ?? window?.MediaSource ?? window?.WebKitMediaSource;
}

/**
Expand Down

0 comments on commit a43a05f

Please sign in to comment.