File Coverage

blib/lib/XML/NewsML_G2/Video.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package XML::NewsML_G2::Video;
2              
3 18     18   129 use XML::NewsML_G2::Types;
  18         42  
  18         534  
4              
5 18     18   95 use Moose;
  18         39  
  18         113  
6 18     18   79533 use namespace::autoclean;
  18         45  
  18         430  
7              
8             with qw(XML::NewsML_G2::Role::RemoteAudible
9             XML::NewsML_G2::Role::RemoteVisual);
10              
11             has 'videoframerate', isa => 'Int', is => 'rw';
12             has 'videoavgbitrate', isa => 'Int', is => 'rw';
13              
14             __PACKAGE__->meta->make_immutable;
15              
16             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.