<?php
/// Include the class
require_once('VideoPlayer.class.php');
/// Player contructor
$video_player = new VideoPlayer('http://www.ianitsky.com.br/_extras/phpclasses/flashplayer/teste.flv', '400', '350', 'true');
if (!$video_player) {
die ($video_player->getLastError());
}
/*
* //Use this method if you use the JW flv player javascript source in your server
* //Download the javascript source in http://www.jeroenwijering.com/?item=JW_FLV_Player
* if(!$video_player->setSwfObject('jw_flv_player/swfobject.js')) {
* die ($video_player->getLastError());
* }
*/
/// Echo the player method for print the player plugin
if(!$player = $video_player->player()) {
die ($video_player->getLastError());
} else {
echo $player;
}
?>