The goog.ui.media.MediaModel.SubTitle Class

goog.ui.media.MediaModel.SubTitle(href, lang, type)

A reference to the subtitle URI for a media object. Implements the 'media.subTitle' in the rss spec.

href {string}
The subtitle's URI. to fetch the subtitle file.
lang {string}
An RFC 3066 language.
type {string}
The MIME type of the URI.

.getHref()

Get the href for the subtitle object.

returns {string}
href The subtitle's URI.

.getLang()

Get the lang for the subtitle object.

returns {string}
lang The RFC 3066 language.

.getType()

Get the type for the subtitle object.

returns {string}
type The MIME type.

.setHref(href)

Sets the href for the subtitle object.

href {string}
The subtitle's URI.
returns {goog.ui.media.MediaModel.SubTitle}
The object itself.

.setLang(lang)

Sets the language for the subtitle object.

lang {string}
The RFC 3066 language.
returns {goog.ui.media.MediaModel.SubTitle}
The object itself.

.setType(type)

Sets the type for the subtitle object.

type {string}
The MIME type.
returns {goog.ui.media.MediaModel.SubTitle}
The object itself.