| 1 | package XML::NewsML_G2::Video; | ||
| 2 | |||
| 3 | 19 | ▶ | use XML::NewsML_G2::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 19 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 19 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 19 | with qw(XML::NewsML_G2::Role::RemoteAudible | |
| 9 | XML::NewsML_G2::Role::RemoteVisual); | ||
| 10 | |||
| 11 | 19 | has 'videoframerate', isa => 'Int', is => 'rw'; | |
| 12 | 19 | has 'videoavgbitrate', isa => 'Int', is => 'rw'; | |
| 13 | |||
| 14 | 19 | __PACKAGE__->meta->make_immutable; | |
| 15 | |||
| 16 | 19 | 1; | |
| 17 | __END__ | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | XML::NewsML_G2::Video - a video specification | ||
| 22 | |||
| 23 | =head1 SYNOPSIS | ||
| 24 | |||
| 25 | my $pic = XML::NewsML_G2::Video->new | ||
| 26 | (size => 2231259, | ||
| 27 | width => 1280, | ||
| 28 | height => 720, | ||
| 29 | duration => 220, | ||
| 30 | ); | ||
| 31 | |||
| 32 | =head1 ATTRIBUTES | ||
| 33 | |||
| 34 | =over 4 | ||
| 35 | |||
| 36 | =item size | ||
| 37 | |||
| 38 | The size in bytes of the video file | ||
| 39 | |||
| 40 | =item width | ||
| 41 | |||
| 42 | The width in pixel of the video | ||
| 43 | |||
| 44 | =item height | ||
| 45 | |||
| 46 | The height in pixel of the video | ||
| 47 | |||
| 48 | =item duration | ||
| 49 | |||
| 50 | The playtime of the video in seconds | ||
| 51 | |||
| 52 | =item videoframerate | ||
| 53 | |||
| 54 | The frames/second of the video | ||
| 55 | |||
| 56 | =item videoavgbitrage | ||
| 57 | |||
| 58 | The bit rate of the video | ||
| 59 | |||
| 60 | =item audiosamplerate | ||
| 61 | |||
| 62 | The sample rate of the audio | ||
| 63 | |||
| 64 | =item audiochannels | ||
| 65 | |||
| 66 | The number of audio channels (stereo, mono) | ||
| 67 | |||
| 68 | =item mimetype | ||
| 69 | |||
| 70 | The MIME type of the video file (e.g. image/jpg) | ||
| 71 | |||
| 72 | =back | ||
| 73 | |||
| 74 | =head1 AUTHOR | ||
| 75 | |||
| 76 | Stefan Hrdlicka C<< <stefan.hrdlicka@apa.at> >> | ||
| 77 | |||
| 78 | =head1 LICENCE AND COPYRIGHT | ||
| 79 | |||
| 80 | Copyright (c) 2013-2014, APA-IT. All rights reserved. | ||
| 81 | |||
| 82 | See L<XML::NewsML_G2> for the license. | ||