Skip to content

Commit

Permalink
1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Jul 19, 2021
1 parent f97745f commit e8ee4ae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
18 changes: 13 additions & 5 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
* [new HLSVod(vodManifestUri, splices, timeOffset, startTimeOffset, header)](#new_HLSVod_new)
* [.load()](#HLSVod+load)
* [.loadAfter(previousVod)](#HLSVod+loadAfter)
* [.reload(mediaSeqNo, additionalSegments, additionalAudioSegments)](#HLSVod+reload)
* [.reload(mediaSeqNo, additionalSegments, additionalAudioSegments, insertAfter)](#HLSVod+reload)
* [.addMetadata(key, value)](#HLSVod+addMetadata)
* [.getVodUri()](#HLSVod+getVodUri)
* [.getLiveMediaSequenceSegments(seqIdx)](#HLSVod+getLiveMediaSequenceSegments)
* [.getMediaSegments()](#HLSVod+getMediaSegments)
* [.getLiveMediaSequenceAudioSegments(audioGroupId, audioLanguage, seqIdx)](#HLSVod+getLiveMediaSequenceAudioSegments)
* [.getBandwidths()](#HLSVod+getBandwidths)
* [.getLiveMediaSequencesCount()](#HLSVod+getLiveMediaSequencesCount)
Expand Down Expand Up @@ -59,10 +60,10 @@ contains the end sequences of the previous VOD

<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.
### hlsVod.reload(mediaSeqNo, additionalSegments, additionalAudioSegments, insertAfter) ⇒
Removes all segments that come before or after a specified media sequence.
Then adds the new additional segments in front or behind.
It finally creates new media sequences with the updated collection of segments.

**Kind**: instance method of [<code>HLSVod</code>](#HLSVod)
**Returns**: A promise that new Media Sequences have been made
Expand All @@ -72,6 +73,7 @@ create new media sequences with the newly updated collection of segments.
| 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 |
| insertAfter | <code>boolean</code> | Whether the additional segments are to be added in front of the live index or behind. |

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

Expand Down Expand Up @@ -102,6 +104,12 @@ Get all segments (duration, uri) for a specific media sequence
| --- | --- | --- |
| seqIdx | <code>number</code> | media sequence index (first is 0) |

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

### hlsVod.getMediaSegments()
Get all segments (duration, uri)

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

### hlsVod.getLiveMediaSequenceAudioSegments(audioGroupId, audioLanguage, seqIdx)
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.15.0",
"version": "1.16.0",
"description": "NPM library to generate HLS Live from HLS VOD",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e8ee4ae

Please sign in to comment.