<?php
$data['params'] = array(
	'rtmp'				=> $fms->fms_for_video,				
	'videoId'			=> $video->video_id,
	'performerId'		=> $video->performer_id,
	'uniqId'			=> $this->watchers->generate_one_unique_id(),
);

if($this->user->id > 0):
	$data['params']['pasword']	= $this->user->password;
	$data['params']['userId']	= 'v'.$this->user->id;
	$data['params']['userName']	= $this->user->username;	
else:
	$data['params']['userName']	= 'Anonymus' . mt_rand(1000,9999);
	$data['params']['userId']		= 'v';
	
endif;

$data['width']	= 800;
$data['height']	= 600;
$data['wmode']	= 'window';
$data['swf']	= 'flvplayer.swf';
$data['scale']	= 'exactfit';
?>
<?php $this->load->view('flash_component_temp',$data)?>