Skip to content

An utility to display video players painlessly from any service.

Notifications You must be signed in to change notification settings

rondey/multiplayer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer

A tiny library to build nice HTML embed codes for videos.

Example

$Multiplayer = new Multiplayer\Multiplayer( );
$options = array(
	'autoPlay' => true,
	'foregroundColor' => 'BADA55'
);

echo $Multiplayer->html( 'http://www.dailymotion.com/video/xzn5qk', $options );
echo $Multiplayer->html( 'http://vimeo.com/47457051', $options );
echo $Multiplayer->html( 'http://www.youtube.com/watch?v=3qSMS4c5WAk', $options );

This code would produce:

<iframe src="http://www.dailymotion.com/embed/video/xzn5qk?autoplay=1&foreground=#BADA55" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<iframe src="http://player.vimeo.com/video/47457051?autoplay=1&color=BADA55" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<iframe src="http://www.youtube-nocookie.com/embed/3qSMS4c5WAk?autoplay=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

About

An utility to display video players painlessly from any service.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%