width = $data['width']; $swfobj->height = $data['height']; $swfobj->playerFile = PLAYER_URL.'/hd_flv_player/hdplayer.swf'; $swfobj->FlashObj(); //Writing Param $swfobj->addParam('allowfullscreen','true'); $swfobj->addParam('allowscriptaccess','always'); if($data['hq']) $swfobj->addParam('flashvars',"playlistXML=http://clipbucket.net/v2/player/hd_flv_player/settings.php?hqid=".$vdata['videoid']); else $swfobj->addParam('flashvars',"playlistXML=http://clipbucket.net/v2/player/hd_flv_player/settings.php?vid=".$vdata['videoid']); $swfobj->CreatePlayer(); return $swfobj->code; }else return false; } register_actions_play_video('hdflvplayer'); } ?>