/*
	This function is used to create audio player
*/
	function create_audio_player(player_id, file_path, base_url, download_cloud_front, stream_cloud_font, cfx_st)
	{
		jwplayer(player_id).setup(
		{
			file: file_path,
			height: 24,
			width: 300,
			controlbar: "bottom",
			modes: [{
						type: "flash",
						src: base_url + "flash/player-licensed.swf"
					},
					{
						type: "html5",
						config: 
						{
							file: "http://" + download_cloud_front + "/" + file_path,
							provider: "sound"
						}
					}],
			provider: "rtmp",
			streamer: "rtmp://" + stream_cloud_font + cfx_st
		});
	}
	
/*
	This function is used to create video player
*/
	
	function create_video_player(player_id, file_path, base_url, download_cloud_front, stream_cloud_font, cfx_st, vwidth, vheight, vautostart)
	{
		if(vheight == 0 || vwidth == 0)
		{
			jwplayer(player_id).setup(
			{
				file: file_path,
				allowfullscreen: true,
				controlbar: "bottom",
				autostart: vautostart,
				stretching: "fill",
				modes: [{
							type: "flash",
							src: base_url + "flash/player-licensed.swf"
						},
						{
							type: "html5",
							config: 
							{
								file: "http://" + download_cloud_front + "/" + file_path,
								provider: "video"
							}
						}],
				provider: "rtmp",
				streamer: "rtmp://" + stream_cloud_font + cfx_st
			});
		}
		else
		{
			jwplayer(player_id).setup(
			{
				file: file_path,
				height: vheight,
				width: vwidth,
				allowfullscreen: true,
				controlbar: "bottom",
				autostart: vautostart,
				stretching: "fill",
				modes: [{
							type: "flash",
							src: base_url + "flash/player-licensed.swf"
						},
						{
							type: "html5",
							config: 
							{
								file: "http://" + download_cloud_front + "/" + file_path,
								provider: "video"
							}
						}],
				provider: "rtmp",
				streamer: "rtmp://" + stream_cloud_font + cfx_st
			});	
		}
	}
