Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit e4ca54f

Browse files
committed
MediaPlayer: do not check MSE support in case of HLS streams on Safari
1 parent f20fc3b commit e4ca54f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/js/streaming/MediaPlayer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ MediaPlayer = function () {
5454
autoPlay = true,
5555
source = null, // current source played
5656
scheduleWhilePaused = false, // should we buffer while in pause
57+
isSafari = (fingerprint_browser().name === "Safari"),
5758
plugins = {};
5859
//#endregion
5960

@@ -85,7 +86,9 @@ MediaPlayer = function () {
8586
_isVideoModelInitialized();
8687
_isSourceInitialized();
8788

88-
if (!MediaPlayer.hasMediaSourceExtension()) {
89+
// Check MSE support
90+
// (except in case of HLS streams on Safari for which we do not use MSE)
91+
if (!(isSafari && source.protocol === 'HLS') && !MediaPlayer.hasMediaSourceExtension()) {
8992
this.errHandler.sendError(MediaPlayer.dependencies.ErrorHandler.prototype.CAPABILITY_ERR_MEDIASOURCE, "MediaSource extension not supported by the browser");
9093
return;
9194
}

0 commit comments

Comments
 (0)