HTML::Object::DOM::TextTrackCueList - HTML Object DOM TextTrack Cue List Class
use HTML::Object::DOM::TextTrackCueList; my $list = HTML::Object::DOM::TextTrackCueList->new || die( HTML::Object::DOM::TextTrackCueList->error, "\n" );
v0.2.0
The TextTrackCueList represents a dynamically updating list of TextTrackCue objects.
TextTrackCueList
TextTrackCue
It inherits from HTML::Object::DOM::List
+-----------------------+ +---------------------------+ +-------------------------+ +-------------------------------------+ | HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::List | --> | HTML::Object::DOM::TextTrackCueList | +-----------------------+ +---------------------------+ +-------------------------+ +-------------------------------------+
An unsigned long that is the number of cues in the list.
Example:
my $video = $doc->getElementById( 'video' ); $video->onplay = sub { say( $video->textTracks->[0]->cues->length ) # 5; };
See also Mozilla documentation
This is an alias for "foreach" in Module::Generic::Array
Returns the first TextTrackCue object with the identifier passed to it.
my $video = $doc->getElementById( 'video' ); $video->onplay = sub { say( $video->textTracks->[0]->cues->getCueById( 'second' ) ) # a VTTCue object; }
Jacques Deguest <jack@deguest.jp>
Mozilla documentation
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.