Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,13 @@ export class PlaylistController extends videojs.EventTarget {
label: 'segment-metadata'
}, false).track;

this.segmentMetadataTrack_.mode = 'hidden';
// Only disable segment metadata track in Safari/iOS when using overrideNative HLS
if ((videojs.browser.IS_ANY_SAFARI || videojs.browser.IS_IOS) &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the IS_IOS check here may be redundant, anything that falls under IS_IOS would also be matched by IS_ANY_SAFARI.

this.sourceType_ === 'hls') {
this.segmentMetadataTrack_.mode = 'disabled';
} else {
this.segmentMetadataTrack_.mode = 'hidden';
}

this.decrypter_ = new Decrypter();
this.sourceUpdater_ = new SourceUpdater(this.mediaSource);
Expand Down
Loading