Browse Source

Update README example for segment-metadata to use cue's value property (#1133)

pull/6/head
Garrett 8 years ago
committed by Matthew Neil
parent
commit
601cb21274
  1. 7
      README.md

7
README.md

@ -532,10 +532,11 @@ if (segmentMetadataTrack) {
let activeCue = segmentMetadataTrack.activeCues[0];
if (activeCue) {
if (previousPlaylist !== activeCue.playlist) {
console.log('Switched from rendition' + previousPlaylist + 'to rendition' + activeCue.playlist);
if (previousPlaylist !== activeCue.value.playlist) {
console.log('Switched from rendition ' + previousPlaylist +
' to rendition ' + activeCue.value.playlist);
}
previousPlaylist = activeCue.playlist;
previousPlaylist = activeCue.value.playlist;
}
});
}

Loading…
Cancel
Save