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
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.
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.
startTime
:number
A time in seconds to begin playback.
title
:string
An option title to display in the player.