manakai

Message::DOM::TextTrackCue

DOM TextTrackCue object

DESCRIPTION

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

For WebVTT text track cues, there is a subclass, Message::DOM::WebVTTCue.

METHODS

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

$track = $cue->track

Return the associated TextTrack object, if any, or undef. [HTML]

$line = $cue->manakai_line

Get the line number in the source file, if available, or -1. [MANAKAI]

$column = $cue->manakai_column

Get the column number in the source file, if available, or -1. [MANAKAI]

$id = $cue->id
$cue->id ($new_id)

Get or set the identifier of the cue. [HTML]

$seconds = $cue->start_time
$cue->start_time ($new_seconds)

Get or set the start time of the cue. [HTML]

$seconds = $cue->end_time
$cue->end_time ($seconds)

Get or set the end time of the cue. [HTML]

$bool = $cue->pause_on_exit
$cue->pause_on_exit ($new_bool)

Get or set the pause-on-exit flag of the cue. [HTML]

$cue2 = $cue->manakai_clone_cue

Create a clone of the cue. All attributes except for track is copied to the clone. [MANAKAI]

SEE ALSO

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

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

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

Message::DOM::TextTrackCueList.

Message::DOM::WebVTTCue.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2012-2013 Wakaba <wakaba@suikawiki.org>.

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