Techdocs

AMP Web SDK

AMP player

akamai.amp.Media

The media object interface.

Examples

var config = {
  media: {
    src: "http://projects.mediadev.edgesuite.net/customers/akamai/video/VfE.mp4",
    type: "video/mp4",
    autoplay: true
  }
};
var media: {
  src: "http://projects.mediadev.edgesuite.net/customers/akamai/video/VfE.mp4",
  type: "video/mp4",
  autoplay: true
};

amp.media = media;

Extends

Members

DEFAULT

(static) :akamai.amp.Media

Default media object.

authorization

:akamai.amp.Authorization

The authorization details for the media object

duration

:number

An option duration for the stream. The player will auto detect the duration after playback has begun, but this properties should be used when autoplay is false so the UI can be properly drawn.

guid

:string

A unique identifier.

medium

:string

The medium of the media. i.e. "video" or "audio"

poster

:string

An option poster image to display before the player has begun playback.

scenes

:Array.<akamai.amp.Scene>

A list of scences for the media object.

source

:Array.<akamai.amp.Resource>

A list of media streams for the player to choose from. This property is ignored when media.src is provided.

src

:string

The URL to the resource.

Inherited From:

startTime

:number

A time in seconds to begin playback.

status

:akamai.amp.MediaStatus

The status of the media object

temporalType

:string

The temporal type of the media. i.e. "live", "vod" or "dvr"

title

:string

An option title to display in the player.

track

:Array.<akamai.amp.Track>

List of tracks to be loaded in the player

type

:string

The MIME type of the resource.

Inherited From: