Helper class to build entry data for playing content

Constructor

new ()

Methods

addCaptionSource (value:ContentEntryCaptionSource):ContentEntryBuilder

Specify a closed captions source

Parameters:

value

The source of closed captions

addCaptionTrackEmbedded (value:Dynamic):ContentEntryBuilder

Specify an embedded closed captions track

Parameters:

value

data used to create the track

addFile (value:ContentEntryFileData):ContentEntryBuilder

Add an entry bitrate

Parameters:

value

A data object representing a stream level manifest

addSegment (value:ContentEntrySegmentData):ContentEntryBuilder

Add a content segment

Parameters:

value

A data object representing a stream level manifest

addValidator (uri:String, value:Bool):ContentEntryBuilder

Add validators by uri to the content data.

Parameters:

value

Dynamic uri boolean pairs for each validator

build ():ContentEntryData

Build the entry

isLive (value:Bool):ContentEntryBuilder

Set if the entry is live content

Parameters:

value

true if it's live

requireAuth (type:String):ContentEntryBuilder

Specify if the entry requires authorization

Parameters:

value

The required authorization type

withContentEntryData (value:ContentEntryData):ContentEntryBuilder

Override data with values from the specified ContentEntryData

Parameters:

value

The source ContentEntryData to do a deep copy from

withId (value:String):ContentEntryBuilder

Set the entry id

Parameters:

value

the id value

withMetadata (value:ContentEntryMetaData):ContentEntryBuilder

Set the entry metadata

Parameters:

value

the metadata value

Returns:

ContentEntryBuilder

withTrt (value:Float):ContentEntryBuilder

Set the expected total runtime

Parameters:

value

the trt

Static methods

staticcreate ():ContentEntryBuilder

Create a builder instance

Returns:

The builder instance

staticfromPlaylistItem (item:IPlaylistItem):ContentEntryBuilder

Get a builder instance populated with data from passed in PlaylistItem

Parameters:

item

The PlaylistItem used to initially populate the builder with

Returns:

The pre-populated builder instance