Skip to content

Commit

Permalink
fix: Fix playback on Apple devices without ManagedMediaSource (#7669)
Browse files Browse the repository at this point in the history
Fixes #7666
  • Loading branch information
tykus160 authored and avelad committed Nov 27, 2024
1 parent dfbc269 commit 88d661d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/media_source_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ shaka.media.MediaSourceEngine = class {
* @param {string} mimeType
*/
addSecondarySource(uri, mimeType) {
if (!this.video_ || !(this.mediaSource_ instanceof ManagedMediaSource)) {
if (!this.video_ || !window.ManagedMediaSource || !this.mediaSource_) {
shaka.log.warning(
'Secondary source is used only with ManagedMediaSource');
return;
Expand Down

0 comments on commit 88d661d

Please sign in to comment.