NAME
Net::PMP::Profile::MediaEnclosure - Rich Media representation for PMP CollectionDoc
SYNOPSIS
use Net::PMP::Profile::MediaEnclosure;
my $image = Net::PMP::Profile::MediaEnclosure->new(
href => 'http://mpr.org/some/asset/some/where.png',
type => 'images/png'
crop => 'medium',
width => 100,
height => 150',
resolutionn => 102, # PPI
media_meta => { foo => 'bar' },
);
my $audio = Net::PMP::Profile::MediaEnclosure->new(
href => 'http://mpr.org/some/audio/some/where.mp3',
type => 'audio/mpeg',
codec => 'LAME3.99r',
format => 'MP3',
duration => 60000, # milliseconds
media_meta => { foo => 'bar' },
);
my $video = Net::PMP::Profile::MediaEnclosure->new(
href => 'http://mpr.org/some/video/some/where',
type => 'video/mpeg',
codec => 'Xvid',
format => 'MPEG=1',
duration => 60000, # milliseconds
media_meta => { foo => 'bar' },
);
DESCRIPTION
Net::PMP::Profile::MediaEnclosure implements the CollectionDoc fields for the PMP Rich Media Profile https://github.com/publicmediaplatform/pmpdocs/wiki/Rich-Media-Profiles.
METHODS
href
URI string.
type
Content type string.
media_meta
Hashref of arbitrary metadata. Note that the PMP schema calls this meta but that word is a reserved method name in Moose.
crop
Image semantic identifier string.
width
Image width integer.
height
Image height integer.
resolution
Image pixels-per-inch float.
codec
Audio/video codec string.
format
Audio/video format string.
duration
Audio/video duration integer (milliseconds). E.g. 60000 == 60 seconds.
as_hash
Returns the object as a hashref ready to pass to Net::PMP::CollectionDoc.
AUTHOR
Peter Karman, <pkarman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-net-pmp at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-PMP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::PMP
You can also look for information at:
- IRC
-
Join #pmp on http://freenode.net.
- * RT: CPAN's request tracker (report bugs here)
- * AnnoCPAN: Annotated CPAN documentation
- * CPAN Ratings
- * Search CPAN
ACKNOWLEDGEMENTS
American Public Media and the Public Media Platform sponsored the development of this module.
LICENSE AND COPYRIGHT
Copyright 2013 American Public Media Group
See the LICENSE file that accompanies this module.
4 POD Errors
The following errors were encountered while parsing the POD:
- Around line 152:
Expected text after =item, not a bullet
- Around line 156:
Expected text after =item, not a bullet
- Around line 160:
Expected text after =item, not a bullet
- Around line 164:
Expected text after =item, not a bullet