The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Sitemap::XML::Google::Video::Player - XML Sitemap Google extension video player entry

VERSION

version 2.02

SYNOPSIS

    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>

DESCRIPTION

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.

ATTRIBUTES

loc

URL of the player.

isa: "Location" in WWW::Sitemap::XML::Types

Required.

allow_embed

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.

autoplay

User-defined string that Google may append (if appropriate) to the flashvars parameter to enable autoplay of the video.

isa: Str

Optional.

METHODS

as_xml

Returns XML::LibXML::Element object representing the <video:player_loc> entry.

SEE ALSO

WWW::Sitemap::XML::Google::Video

AUTHOR

Alex J. G. Burzyński <ajgb@cpan.org>

COPYRIGHT AND LICENSE

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.