blib/lib/XML/NewsML_G2/Role/RemoteAudible.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/XML/NewsML_G2/Role/Remote.pm ↑ Summary blib/lib/XML/NewsML_G2/Role/RemoteVisual.pm »
1 package XML::NewsML_G2::Role::RemoteAudible;
2  
3 21 ▶use XML::NewsML_G2::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 21 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 21 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 21 with 'XML::NewsML_G2::Role::Remote';
9  
10 21 has 'duration', isa => 'Str', is => 'rw';
11 21 has 'audiosamplerate', isa => 'Int', is => 'rw';
12 21 has 'audiochannels', isa => 'Str', is => 'rw';
13  
14 # IIM :
15 # 2:150 Audio Type '1A'
16 # 2:151 Audio Sampling Rate "011025" for a sample rate of 11025 Hz
17 # 2:152 Audio Sampling Resolution "08" for a sample size of 8 bits
18 # 2:153 Audio Duration "000105" for a cut lasting one minute, five seconds
19  
20 21 1;
21 __END__
22  
23 =head1 NAME
24  
25 XML::NewsML_G2::Remote - Used by Picture, Graphics, Video
26  
27 =head1 SYNOPSIS
28  
29 my $pic = XML::NewsML_G2::Video->new
30 (size => 2231259,
31 width => 1280,
32 height => 720,
33 duration => 220,
34 );
35  
36 =head1 ATTRIBUTES
37  
38 =over 4
39  
40 =item duration
41  
42 The playtime of the audio in seconds
43  
44 =item audiosamplerate
45  
46 The sample rate of the audio
47  
48 =item audiochannels
49  
50 The number of audio channels (stereo, mono)
51  
52 =item mimetype
53  
54 The MIME type of the video file (e.g. image/jpg)
55  
56 =back
57  
58 =head1 AUTHOR
59  
60 Mario Paumann C<< <mario.paumann@apa.at> >>
61  
62 =head1 LICENCE AND COPYRIGHT
63  
64 Copyright (c) 2013-2014, APA-IT. All rights reserved.
65  
66 See L<XML::NewsML_G2> for the license.
« blib/lib/XML/NewsML_G2/Role/Remote.pm ↑ Summary blib/lib/XML/NewsML_G2/Role/RemoteVisual.pm »