Playlist

Playlist

new Playlist(player, configopt, key)

Creates an instance of the Playlist plugin.

Parameters
Name Type Attributes Description
player akamai.amp.Player

The player instance

config akamai.amp.playlist.PlaylistConfig | Object <optional>

The configuration override object, or JSON string. Must adhear to the akamai.amp.playlist.PlaylistConfig interface.

key string

The plugin identifier.

Members

index

:number

Current index in the playback queue

queue

:Array.<Object>

The playlist queue

Methods

addToQueue

addToQueue(media)

Adds a new item to the playback queue

Parameters
Name Type Description
media Object

Video asset in the form of Media object

Properties
Name Type Description
title string

The video asset title.

poster string

The video asset poster image.

source string

The video source.