Skip to content

Commit

Permalink
1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Jul 8, 2021
1 parent bc16940 commit acffb56
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* [new HLSVod(vodManifestUri, splices, timeOffset, startTimeOffset, header)](#new_HLSVod_new)
* [.load()](#HLSVod+load)
* [.loadAfter(previousVod)](#HLSVod+loadAfter)
* [.reload(mediaSeqNo, additionalSegments, additionalAudioSegments)](#HLSVod+reload)
* [.addMetadata(key, value)](#HLSVod+addMetadata)
* [.getVodUri()](#HLSVod+getVodUri)
* [.getLiveMediaSequenceSegments(seqIdx)](#HLSVod+getLiveMediaSequenceSegments)
Expand All @@ -21,6 +22,7 @@
* [.getPlayheadPositions()](#HLSVod+getPlayheadPositions)
* [.releasePreviousVod()](#HLSVod+releasePreviousVod)
* [.getDuration()](#HLSVod+getDuration)
* [.getLastUsedDiscSeq()](#HLSVod+getLastUsedDiscSeq)
* [._copyAudioGroupsFromPrevious()](#HLSVod+_copyAudioGroupsFromPrevious)

<a name="new_HLSVod_new"></a>
Expand Down Expand Up @@ -55,6 +57,22 @@ contains the end sequences of the previous VOD
| --- | --- | --- |
| previousVod | [<code>HLSVod</code>](#HLSVod) | the previous VOD to concatenate to |

<a name="HLSVod+reload"></a>

### hlsVod.reload(mediaSeqNo, additionalSegments, additionalAudioSegments) ⇒
Removes all segments that come before a specified media sequence.
Then prepends the new additional segments in front, then finally
create new media sequences with the newly updated collection of segments.

**Kind**: instance method of [<code>HLSVod</code>](#HLSVod)
**Returns**: A promise that new Media Sequences have been made

| Param | Type | Description |
| --- | --- | --- |
| mediaSeqNo | <code>number</code> | The media Sequence index that is the live index. |
| additionalSegments | <code>object</code> | New group of segments to merge with a possible subset of this.segments |
| additionalAudioSegments | <code>object</code> | New group of audio segments to merge with a possible subset of this.segments |

<a name="HLSVod+addMetadata"></a>

### hlsVod.addMetadata(key, value)
Expand Down Expand Up @@ -167,6 +185,12 @@ Remove pointers to previous VOD and release to garbage collector
### hlsVod.getDuration()
Returns the current duration calculated from the sum of the duration of all segments

**Kind**: instance method of [<code>HLSVod</code>](#HLSVod)
<a name="HLSVod+getLastUsedDiscSeq"></a>

### hlsVod.getLastUsedDiscSeq()
Returns the last added Discontinuity sequence count from getLiveMediaSequences()

**Kind**: instance method of [<code>HLSVod</code>](#HLSVod)
<a name="HLSVod+_copyAudioGroupsFromPrevious"></a>

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eyevinn/hls-vodtolive",
"version": "1.14.0",
"version": "1.15.0",
"description": "NPM library to generate HLS Live from HLS VOD",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit acffb56

Please sign in to comment.