clipbucket/upload/player/flow_player/flow_player.php
Arslan Hassan b76181ef04 Fixed : Admin Animation
Fixed : Group Links
Removed : Unusual Queries
ADDED : Player in edit video
2010-01-17 13:26:50 +00:00

51 lines
No EOL
1.2 KiB
PHP

<?php
/*
Player Name: Flow Player
Description: Flow Player for Clipbucket
Author: Arslan Hassan
ClipBucket Version: 2
Plugin Version: 1.0 - FlowPlayer 3.1.2
Website: http://clip-bucket.com/
*/
/**
* This file is used to instruct ClipBucket
* for how to operate JW PLayer
* this file is protype
* you can get complete instructions
* from docs.clip-bucket.com
*
* @Author : Arslan Hassan
* @Script : ClipBucket v2
* @License : CBLA
* @Since : September 15 2009
*/
if(!function_exists('flowplayer'))
{
define("FLOWPLAYER",TRUE);
define("AUTOPLAY",false);
define("SKIN","default.swf");
function flowplayer($vdata)
{
$vid_file = get_video_file($vdata,false,false);
$code = '';
if($vid_file)
{
$code .= "swfobject.embedSWF(\"".PLAYER_URL.'/flow_player/flowplayer.swf'."\", \"videoPlayer\", \"".$vdata['width']."\", \"".$vdata['height']."\", \"9.0.0\", null, { \n";
$code .= "config: \"{'clip': '".BASEURL.'/files/videos/'.$vid_file."','autoPlay':'".$vdata['autoplay']."' }}\"\n" ;
$code .= "} \n";
$code .= "); \n";
return $code;
}else{
return false;
}
}
register_actions_play_video('flowplayer');
}
?>