| 1 | ##---------------------------------------------------------------------------- | ||||||||||
| 2 | ## HTML Object - ~/lib/HTML/Object/DOM/Element/Video.pm | ||||||||||
| 3 | ## Version v0.2.0 | ||||||||||
| 4 | ## Copyright(c) 2021 DEGUEST Pte. Ltd. | ||||||||||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||||||||||
| 6 | ## Created 2021/12/23 | ||||||||||
| 7 | ## Modified 2022/09/18 | ||||||||||
| 8 | ## All rights reserved. | ||||||||||
| 9 | ## | ||||||||||
| 10 | ## | ||||||||||
| 11 | ## This program is free software; you can redistribute it and/or modify it | ||||||||||
| 12 | ## under the same terms as Perl itself. | ||||||||||
| 13 | ##---------------------------------------------------------------------------- | ||||||||||
| 14 | package HTML::Object::DOM::Element::Video; | ||||||||||
| 15 | BEGIN | ||||||||||
| 16 | { | ||||||||||
| 17 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 1 | ▶ | warnings::register_categories( 'HTML::Object' ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 1 | ▶ | use parent qw( HTML::Object::DOM::Element::Media ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 1 | ▶ | use vars qw( $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 1 | ▶ | use HTML::Object::DOM::Element::Shared qw( :video ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 1 | our $VERSION = 'v0.2.0'; | |||||||||
| 24 | }; | ||||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 28 | |||||||||||
| 29 | sub init | ||||||||||
| 30 | { | ||||||||||
| 31 | 0 | ▶ | my $self = shift( @_ ); | ||||||||
|
Subroutine
init: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 32 | 0 | $self->{_init_strict_use_sub} = 1; | |||||||||
| 33 | 0 | ▶ | $self->SUPER::init( @_ ) || return( $self->pass_error ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 0 | ▶ | $self->{tag} = 'video' if( !CORE::length( "$self->{tag}" ) ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 0 | return( $self ); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | # Note: property autoPictureInPicture | ||||||||||
| 39 | 0 | ▶ | sub autoPictureInPicture : lvalue { return( shift->_set_get_property({ attribute => 'autopictureinpicture', is_boolean => 1 }, @_ ) ); } | ||||||||
|
Subroutine
autoPictureInPicture: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | |||||||||||
| 41 | # Note: property disablePictureInPicture | ||||||||||
| 42 | 0 | ▶ | sub disablePictureInPicture : lvalue { return( shift->_set_get_property({ attribute => 'disablepictureinpicture', is_boolean => 1 }, @_ ) ); } | ||||||||
|
Subroutine
disablePictureInPicture: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 43 | |||||||||||
| 44 | 0 | ▶ | sub getVideoPlaybackQuality { return; } | ||||||||
|
Subroutine
getVideoPlaybackQuality: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 45 | |||||||||||
| 46 | # Note: property height is inherited | ||||||||||
| 47 | |||||||||||
| 48 | 0 | ▶ | sub onenterpictureinpicture : lvalue { return( shift->on( 'enterpictureinpicture', @_ ) ); } | ||||||||
|
Subroutine
onenterpictureinpicture: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 49 | |||||||||||
| 50 | 0 | ▶ | sub onleavepictureinpicture : lvalue { return( shift->on( 'leavepictureinpicture', @_ ) ); } | ||||||||
|
Subroutine
onleavepictureinpicture: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 51 | |||||||||||
| 52 | # Note: property poster | ||||||||||
| 53 | 0 | ▶ | sub poster : lvalue { return( shift->_set_get_property({ attribute => 'poster', is_uri => 1 }, @_ ) ); } | ||||||||
|
Subroutine
poster: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 54 | |||||||||||
| 55 | 0 | ▶ | sub requestPictureInPicture { return; } | ||||||||
|
Subroutine
requestPictureInPicture: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 56 | |||||||||||
| 57 | # Note: property videoHeight read-only | ||||||||||
| 58 | 0 | ▶ | sub videoHeight : lvalue { return( shift->_set_get_number( 'videoheight', @_ ) ); } | ||||||||
|
Subroutine
videoHeight: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 59 | |||||||||||
| 60 | # Note: property videoWidth read-only | ||||||||||
| 61 | 0 | ▶ | sub videoWidth : lvalue { return( shift->_set_get_number( 'videowidth', @_ ) ); } | ||||||||
|
Subroutine
videoWidth: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 62 | |||||||||||
| 63 | # Note: property width is inherited | ||||||||||
| 64 | |||||||||||
| 65 | 1 | 1; | |||||||||
| 66 | # NOTE: POD | ||||||||||
| 67 | __END__ | ||||||||||