The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTML::Video::Embed - convert a url into a html embed string

SYNOPSIS

use HTML::Video::Embed;

my $embedder = HTML::Video::Embed->new({
    'width' => '570',
    'height' => '340',
});

my $url = 'http://www.youtube.com/watch?v=HMhks1TSFog';

my $html_embed_code = $embedder->url_to_embed( $url );

#$html_embed_code is now == "<iframe title="YouTube video player" width="570" height="340" src="http://www.youtube.com/embed/HMhks1TSFog" frameborder="0" allowfullscreen></iframe>"

DESCRIPTION

Converts urls into html embed codes, supported sites are

Collegehumor
DailyMotion
FunnyOrDie
Google
Kontraband
LiveLeak
MegaVideo
MetaCafe
SpikedHumor
Vimeo
Yahoo
Youtube

METHODS

new

takes two (optional) arguments, width and height, which sets the size of the video

url_to_embed

converts a url into the html embed code

SUPPORT

Bugs should always be submitted via the CPAN bug tracker

For other issues, contact the maintainer

AUTHORS

n0body <n0body@thisaintnews.com>

SEE ALSO

http://thisaintnews.com, Gearman::Worker, App:Daemon

LICENSE

Copyright (C) 2011 by n0body http://thisaintnews.com/

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.