width = $data['width']; $swfobj->height = $data['height']; $swfobj->playerFile = PLAYER_URL.'/hdflvplayer/hdplayer.swf'; $swfobj->FlashObj(); //Writing Param $swfobj->addParam('allowfullscreen','true'); $swfobj->addParam('allowscriptaccess','always'); if($vid_file) { $swfobj->addVar('file',$vid_file); if($hd_file) $swfobj->addVar('hdpath',$hd_file); }else $swfobj->addVar('file',urlencode($ref)); //Now lets setup Playlist //First thing first, if there is no playlist, shut it up so wont bother you if(!$_GET['play_list']) { $swfobj->addVar('showPlaylist','false'); //Setting Autoplay $swfobj->addVar('autoplay',$cb_hd_smart->configs['auto_play']); }else { $swfobj->addVar('showPlaylist','true'); $swfobj->addVar('playlistXML',HD_FLV_PLAYLIST.'?playlist='.mysql_clean($_GET['play_list'].'_'.$vdata['videoid'])); $swfobj->addVar('playlist_autoplay',mysql_clean($_COOKIE['auto_play_playlist'])); //Setting Autoplay $swfobj->addVar('autoplay',"true"); } //Setting Logo Position $swfobj->addVar('logoalign',$cb_hd_smart->configs['logo_placement']); //Setting License settings if($cb_hd_smart->configs['license']) { $swfobj->addVar('license',$cb_hd_smart->configs['license']); } if($cb_hd_smart->configs['hd_skin']) $swfobj->addVar('skin',$cb_hd_smart->skin($cb_hd_smart->configs['hd_skin'])); //Setting Allow Embed option $swfobj->addVar('embed_visible',$cb_hd_smart->configs['embed_visible']); //Setting Preview Image $swfobj->addVar('preview',getThumb($vdata,'big')); $swfobj->addVar('skin_autohide',true); $swfobj->addVar('title',"Test"); $swfobj->CreatePlayer(); return $swfobj->code; }else return false; } register_actions_play_video('hdflvplayer'); } ?>