Net::PMP::Profile::MediaEnclosure - Rich Media representation for PMP CollectionDoc
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' }, );
Net::PMP::Profile::MediaEnclosure implements the CollectionDoc fields for the PMP Rich Media Profile https://github.com/publicmediaplatform/pmpdocs/wiki/Rich-Media-Profiles.
URI string.
Content type string.
Hashref of arbitrary metadata. Note that the PMP schema calls this meta but that word is a reserved method name in Moose.
Image semantic identifier string.
Image width integer.
Image height integer.
Image pixels-per-inch float.
Audio/video codec string.
Audio/video format string.
Audio/video duration integer (milliseconds). E.g. 60000 == 60 seconds.
Returns the object as a hashref ready to pass to Net::PMP::CollectionDoc.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
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.
bug-net-pmp at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::PMP
You can also look for information at:
Join #pmp on http://freenode.net.
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-PMP
http://annocpan.org/dist/Net-PMP
http://cpanratings.perl.org/d/Net-PMP
http://search.cpan.org/dist/Net-PMP/
American Public Media and the Public Media Platform sponsored the development of this module.
Copyright 2013 American Public Media Group
See the LICENSE file that accompanies this module.
To install Net::PMP::Profile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::PMP::Profile
CPAN shell
perl -MCPAN -e shell install Net::PMP::Profile
For more information on module installation, please visit the detailed CPAN module installation guide.