HTML::Object::DOM::VTTRegion - HTML Object DOM VTTRegion Class
use HTML::Object::DOM::VTTRegion; my $region = HTML::Object::DOM::VTTRegion->new || die( HTML::Object::DOM::VTTRegion->error, "\n" );
v0.2.0
The VTTRegion interface—part of the API for handling WebVTT (text tracks on media presentations)—describes a portion of the video to render a HTML::Object::DOM::VTTCue onto.
VTTRegion
WebVTT
Sets or gets a string that identifies the region, as a scalar object.
See also Mozilla documentation
Sets or gets a double representing the height of the region, in number of lines.
Sets or gets a double representing the region anchor X offset, as a percentage of the region.
Sets or gets a double representing the region anchor Y offset, as a percentage of the region.
Sets or gets an enum representing how adding new cues will move existing cues, as a scalar object.
Sets or gets a double representing the viewport anchor X offset, as a percentage of the video.
Sets or gets a double representing the viewport anchor Y offset, as a percentage of the video.
Sets or gets a double representing the width of the region, as a percentage of the video.
There are no method.
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.