wciu
wciu

Reputation: 1183

Is it possible to get information from ID3 tag metadata embedded in HLS stream in Safari?

I have an HLS stream that streams a live feed with embedded ID3 PRIV Tag to mark a certain points in stream. Is it possible to get notified or somehow retrieved the data from these tags in Safari, ideally via Javascript?

Upvotes: 2

Views: 2287

Answers (1)

Alexander Wolf
Alexander Wolf

Reputation: 604

Sure, this is possible using JavaScript functions, like:

video.textTracks.addEventListener('addtrack', function(addTrackEvent) {
  var track  = addTrackEvent.track;
  track.mode = 'hidden';

  track.addEventListener('cuechange', function(cueChangeEvent) {
    // some processing here...
  });
});

This is basically based on an answer from this question about ID3 tags on iOS.

Upvotes: 1

Related Questions