Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mjneil committed Feb 22, 2017
1 parent a461a64 commit 04f4bb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,16 +451,16 @@ the web](http://www.html5rocks.com/en/tutorials/track/basics/).
### Segment Metadata
You can get metadata about the segments currently in the buffer by using the `segment-metadata`
text track. You can get the metadata of the currently rendered segment by looking at the
tracks `activeCues` array. The metadata will be attached to the `cue.value` property and
track's `activeCues` array. The metadata will be attached to the `cue.value` property and
will have this structure

```javascript
cue.value = {
uri: The Segment uri,
timeline: Timeline of the segment,
playlist: The Playlist uri,
start: Segment start time,
end: Segment end time
uri, // The Segment uri
timeline, // Timeline of the segment for detecting discontinuities
playlist, // The Playlist uri
start, // Segment start time
end // Segment end time
};
```

Expand Down
3 changes: 1 addition & 2 deletions src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,6 @@ export default class SegmentLoader extends videojs.EventTarget {
return;
}

const playlist = segmentInfo.playlist;
const segment = segmentInfo.segment;
const start = segment.start;
const end = segment.end;
Expand All @@ -1165,7 +1164,7 @@ export default class SegmentLoader extends videojs.EventTarget {
const value = {
uri: segmentInfo.uri,
timeline: segmentInfo.timeline,
playlist: playlist.uri,
playlist: segmentInfo.playlist.uri,
start,
end
};
Expand Down

0 comments on commit 04f4bb3

Please sign in to comment.