XML::ASX::Entry - Describe a media source
use XML::ASX::Entry; $entry = XML::ASX::Entry->new; $entry->banner('http://some/bmp'); $entry->ref('http://source/1.asf'); $entry->ref('http://mirror/1.asf'); $entry->ref('mms://mirror2/1.asf');
XML::ASX::Entry represents a playlist entry in an ASX XML document.
The following are readable by calling without argument, and settable by calling with argument.
Method Default Value Purpose --------------------------------------------------------------------- abstract none one line summary of file content author none who made the file banner none URL to 82x30 image to be displayed during play, just below the media base none just like HTML clientskip YES is the client allowed to skip the entry? may be 'YES' or 'NO'. copyright none who holds rights to the file duration 00:00:00.00 how long should we play the stream? previewduration none and for how long in preview mode? logo_icon none URL to 16x16 image to be displayed in WMP control bar logo_mark none URL to 82x30 image displayed before and after queue is played moreinfo none text to display when mouse hovers over logo or banner target none url to open in web browser when banner is clicked title none title of the file for WMP to display
sub add_ref() - add a network-addressable path to a media source. multiple calls may be made to add_ref() for rollover/redundancy.
sub each_ref() - returns a list of items added by add_ref().
sub xml() - returns XML from <ENTRY> to </ENTRY>
Allen Day, <allenday@ucla.edu>
XML::ASX
To install XML::ASX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::ASX
CPAN shell
perl -MCPAN -e shell install XML::ASX
For more information on module installation, please visit the detailed CPAN module installation guide.