WWW::Sitemap::XML::Google::Video::Player - XML Sitemap Google extension video player entry
version 2.02
my $player => WWW::Sitemap::XML::Google::Video::Player->new( { loc => 'http://mywebsite.com/video_player.swf?video=1', allow_embed => "yes", autoplay => "ap=1", } );
XML output:
<?xml version="1.0" encoding="UTF-8"?> <video:player_loc allow_embed="yes" autoplay="ap=1">http://example.com/video_player.swf?video=2</video:player_loc>
WWW::Sitemap::XML::Google::Video::Player represents single video player for video entry in sitemap file.
Class implements WWW::Sitemap::XML::Google::Video::Player::Interface.
URL of the player.
isa: "Location" in WWW::Sitemap::XML::Types
Required.
Whether Google can embed the video in search results. Allowed values are yes or no. The default value is yes.
isa: "StrBool" in WWW::Sitemap::XML::Types
Optional.
User-defined string that Google may append (if appropriate) to the flashvars parameter to enable autoplay of the video.
isa: Str
Str
Returns XML::LibXML::Element object representing the <video:player_loc> entry.
<video:player_loc>
WWW::Sitemap::XML::Google::Video
Alex J. G. Burzyński <ajgb@cpan.org>
This software is copyright (c) 2014 by Alex J. G. Burzyński <ajgb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::Sitemap::XML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Sitemap::XML
CPAN shell
perl -MCPAN -e shell install WWW::Sitemap::XML
For more information on module installation, please visit the detailed CPAN module installation guide.