manakai

Message::DOM::TextTrack

DOM TextTrack object

DESCRIPTION

The Message::DOM::TextTrack class implements the DOM TextTrack interface.

METHODS

The Message::DOM::TextTrack object has following methods:

$string = $track->kind

The kind of the track. [HTML]

$string = $track->label

The label of the track. [HTML]

$string = $track->language

The language tag of the track. [HTML]

$mode = $track->mode

The mode of the track. [HTML]

$bool = $track->manakai_is_invalid

Return true if the text track represents a WebVTT file which cannot be successfully processed by the WebVTT parser. [MANAKAI]

$list = $track->cues

XXX Not implemented yet.

$list = $track->active_cues

XXX Not implemented yet.

$list = $track->manakai_all_cues

Return the live list of the cues contained in the track. [MANAKAI]

$track->add_cue ($cue)

Add the cue to the track. [HTML]

$track->remove_cue ($cue)

Remove the cue from the track. [HTML]

$track2 = $track->manakai_clone_track

Create a copy of the text track object. Attributes whose values are not cue lists are copied to the clone. All cues in the manakai_all_cues list are also cloned to the new track. [MANAKAI]

SEE ALSO

HTML Standard <http://www.whatwg.org/specs/web-apps/current-work/#texttrack>.

manakai DOM Extensions <https://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%20DOM%20Extensions#anchor-59>.

WebVTT Standard <http://dev.w3.org/html5/webvtt/>.

Message::DOM::TextTrackCue, Message::DOM::TextTrackCueList.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2012 Wakaba <wakaba@suikawiki.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.