Class: shaka.dash.mpd.Mpd

Constructor

new Mpd()

Source:

Members

(static, constant) TAG_NAME :string

Type:
  • string
Source:

(nullable) availabilityStartTime :number

The wall-clock time, in seconds, that the media content specified within the MPD started/will start to stream.
Type:
  • number
Source:

baseUrl :Array.<!goog.Uri>

Type:
  • Array.<!goog.Uri>
Source:

(nullable) id :string

Type:
  • string
Source:

(nullable) mediaPresentationDuration :number

The entire stream's duration, in seconds.
Type:
  • number
Source:

(nullable) minBufferTime :number

The amount of content to buffer, in seconds, before playback begins to ensure uninterrupted playback.
Type:
  • number
Source:

(nullable) minUpdatePeriod :number

The interval, in seconds, to poll the media server for an updated MPD, or null if updates are not required.
Type:
  • number
Source:

origUrl :Array.<!goog.Uri>

Type:
  • Array.<!goog.Uri>
Source:

(non-null) periods :Array.<!shaka.dash.mpd.Period>

Type:
Source:

(nullable) suggestedPresentationDelay :number

The duration, in seconds, that the media server takes to make live media content available. For example, if this value is 30 then only media content at least 30 seconds in the past may be requested from the media server.
Type:
  • number
Source:

(nullable) timeShiftBufferDepth :number

The duration, in seconds, that the media server retains live media content, excluding the current segment and the previous segment, which are always available. For example, if this value is 60 then only media content up to 60 seconds from the beginning of the previous segment may be requested from the media server.
Type:
  • number
Source:

type :string

Type:
  • string
Source:

updateLocation :Array.<!goog.Uri>

Type:
  • Array.<!goog.Uri>
Source:

url :Array.<!goog.Uri>

The MPD's URL.
Type:
  • Array.<!goog.Uri>
Source:

Methods

addExternalCaptions(url, opt_langopt, opt_mimeopt)

Adds a text set for the given external captions. This only effects the first period; has no effect if there are no periods.
Parameters:
Name Type Attributes Description
url string
opt_lang string <optional>
Optional language of the text, defaults to 'en'.
opt_mime string <optional>
Optional MIME type, defaults to 'text/vtt'.
Source:

parse(parent, elemnon-null)

Parses an "MPD" tag.
Parameters:
Name Type Description
parent {baseUrl: !Array.<!goog.Uri>} A virtual parent tag containing a BaseURL which refers to the MPD resource itself.
elem Node The MPD XML element.
Source: