亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? player.java

?? - MP3 streaming support for Shoutcast/Icecast added. - Ogg Vorbis support added. - Playlist implem
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
            if ((playerState == INIT) || (playerState == STOP) || (playerState == OPEN))
            {
				System.gc();
				PlaylistItem pli = null;
				// Local File.
				if (acEject.getMouseButton() == MouseEvent.BUTTON1_MASK)
				{
                	FileDialog FD = new FileDialog(new Frame(),"Open file",FileDialog.LOAD);
                	FD.show();
                	if (FD.getFile() != null) pli = new PlaylistItem(FD.getFile(), FD.getDirectory()+FD.getFile(), -1, true);
				}
				// Remote File.
				else if (acEject.getMouseButton() == MouseEvent.BUTTON3_MASK)
				{
					UrlDialog UD = new UrlDialog("Open location",100,100,280,120,config.getLastURL());
					UD.show();
                	if (UD.getFile() != null) pli = new PlaylistItem(UD.getFile(), UD.getURL(), -1, false);
				}
                this.setCurrentSong(pli);
            }
            offScreenGraphics.drawImage(iconsImage[2], iconsLocation[0], iconsLocation[1], this);
			offScreenGraphics.drawImage(iconsImage[4], iconsLocation[2], iconsLocation[3], this);
            repaint();
        }

        /*---------------------------*/
        /*-- Play the current File --*/
        /*---------------------------*/
        else if (e.getActionCommand().equals("Play"))
        {
            if (playerState == PAUSE)
            {
                theSoundPlayer.resumePlayback();
                playerState = PLAY;
                offScreenGraphics.drawImage(iconsImage[0], iconsLocation[0], iconsLocation[1], this);
                offScreenGraphics.drawImage(iconsImage[3], iconsLocation[2], iconsLocation[3], this);
                repaint();
            }
            else if (playerState == PLAY)
            {
                theSoundPlayer.stopPlayback();
                playerState = PLAY;
				secondsAmount = 0;
                offScreenGraphics.drawImage(timeImage[0], minuteDLocation[0], minuteDLocation[1], this);
                offScreenGraphics.drawImage(timeImage[0], minuteLocation[0], minuteLocation[1], this);
                offScreenGraphics.drawImage(timeImage[0], secondDLocation[0], secondDLocation[1], this);
                offScreenGraphics.drawImage(timeImage[0], secondLocation[0], secondLocation[1], this);
				repaint();
				if (currentFileOrURL != null)
				{
                	try
                	{
						if (currentIsFile == true) theSoundPlayer.setDataSource(openFile(currentFileOrURL));
						else theSoundPlayer.setDataSource(new URL(currentFileOrURL));
					} catch (Exception ex)
					  {
						   trace(0,getClass().getName(),"Cannot read file : "+currentFileOrURL+", "+ex.getMessage());
					  }
                	theSoundPlayer.startPlayback();
				}
            }
            else if ( (playerState == STOP) || (playerState == OPEN))
            {
            	if (currentFileOrURL != null)
            	{
            		try
                	{
						if (currentIsFile == true) theSoundPlayer.setDataSource(openFile(currentFileOrURL));
						else theSoundPlayer.setDataSource(new URL(currentFileOrURL));
					} catch (UnsupportedAudioFileException uafe)
					  {
						trace(0,getClass().getName(),"Stream error :"+currentFileOrURL+", "+uafe.getMessage());
					  }
					  catch (LineUnavailableException lue)
					  {
						trace(0,getClass().getName(),"Stream error :"+currentFileOrURL+", "+lue.getMessage());
					  }
					  catch (IOException ex)
					  {
						trace(0,getClass().getName(),"Stream error :"+currentFileOrURL+", "+ex.getMessage());
					  }
                	theSoundPlayer.startPlayback();
                	theSoundPlayer.setGain( ((double)gainValue / (double)maxGain) );
					theSoundPlayer.setPan((float)balanceValue);
                	sampleRateImage = (new taftb(fontIndex, imText, fontWidth, fontHeight, 0, ""+Math.round((theSoundPlayer.getAudioFormat()).getSampleRate()/1000))).getBanner();
                	bitsRateImage = (new taftb(fontIndex, imText, fontWidth, fontHeight, 0, ""+Math.round((theSoundPlayer.getAudioFormat()).getFrameSize()*8*(theSoundPlayer.getAudioFormat()).getFrameRate()/1000))).getBanner();
                	offScreenGraphics.drawImage(sampleRateImage, sampleRateLocation[0], sampleRateLocation[1], this);
                	offScreenGraphics.drawImage(bitsRateImage, bitsRateLocation[0], bitsRateLocation[1], this);
                	if ((theSoundPlayer.getAudioFormat()).getChannels() == 2)
                	{
                	    offScreenGraphics.drawImage(activeModeImage[0], stereoLocation[0], stereoLocation[1], this);
                	}
                	else if ((theSoundPlayer.getAudioFormat()).getChannels() == 1)
                	{
                	    offScreenGraphics.drawImage(activeModeImage[1], monoLocation[0], monoLocation[1], this);
                	}
                	double lenghtInSecond = 0.0;
                	if ((theSoundPlayer.getAudioFileFormat()).getFrameLength() != -1 ) lenghtInSecond = ((theSoundPlayer.getAudioFileFormat()).getFrameLength()*theSoundPlayer.getAudioFormat().getFrameSize()*8)/((theSoundPlayer.getAudioFormat()).getFrameSize()*8*(theSoundPlayer.getAudioFormat()).getFrameRate());
                	else lenghtInSecond = ((theSoundPlayer.getAudioFileFormat()).getByteLength()*8)/((theSoundPlayer.getAudioFormat()).getFrameSize()*8*(theSoundPlayer.getAudioFormat()).getFrameRate());
                	int    minutes = (int) (lenghtInSecond/60);
                	int    seconds = (int) (lenghtInSecond - (minutes*60));
                	titleText = currentSongName.toUpperCase();
                	if (seconds >= 10) titleText = titleText + " ("+minutes+":"+seconds+")";
                	else titleText = titleText + " ("+minutes+":0"+seconds+")";
                	titleImage = (new taftb(fontIndex, imText, fontWidth, fontHeight, 0, titleText)).getBanner(0,0,155,6);
                	offScreenGraphics.drawImage(clearImage, titleLocation[0], titleLocation[1], this);
                	offScreenGraphics.drawImage(titleImage, titleLocation[0], titleLocation[1], this);
                	offScreenGraphics.drawImage(timeImage[0], minuteDLocation[0], minuteDLocation[1], this);
                	offScreenGraphics.drawImage(timeImage[0], minuteLocation[0], minuteLocation[1], this);
                	offScreenGraphics.drawImage(timeImage[0], secondDLocation[0], secondDLocation[1], this);
                	offScreenGraphics.drawImage(timeImage[0], secondLocation[0], secondLocation[1], this);

                	playerState = PLAY;
                	offScreenGraphics.drawImage(iconsImage[0], iconsLocation[0], iconsLocation[1], this);
                	offScreenGraphics.drawImage(iconsImage[3], iconsLocation[2], iconsLocation[3], this);
                	repaint();

                	trace(1,getClass().getName(),titleText);
                	if ((theSoundPlayer.getAudioFileFormat()).getFrameLength() != -1 ) trace(1,getClass().getName(),"Frames = "+(theSoundPlayer.getAudioFileFormat()).getFrameLength());
                	trace(1,getClass().getName(),"FrameRate (Hz) = "+theSoundPlayer.getAudioFormat().getFrameRate());
                	trace(1,getClass().getName(),"FrameSize (bits) = "+theSoundPlayer.getAudioFormat().getFrameSize()*8);
				}
            }
        }

        /*-----------------------------------*/
        /*-- Pause/Resume the current File --*/
        /*-----------------------------------*/
        else if (e.getActionCommand().equals("Pause"))
        {
            if (playerState == PLAY)
            {
                theSoundPlayer.pausePlayback();
                playerState = PAUSE;
                offScreenGraphics.drawImage(iconsImage[1], iconsLocation[0], iconsLocation[1], this);
				offScreenGraphics.drawImage(iconsImage[4], iconsLocation[2], iconsLocation[3], this);
                repaint();
            }
            else if (playerState == PAUSE)
            {
                theSoundPlayer.resumePlayback();
                playerState = PLAY;
                offScreenGraphics.drawImage(iconsImage[0], iconsLocation[0], iconsLocation[1], this);
                offScreenGraphics.drawImage(iconsImage[3], iconsLocation[2], iconsLocation[3], this);
                repaint();
            }
        }

        /*------------------*/
        /*-- Stop to play --*/
        /*------------------*/
        else if (e.getActionCommand().equals("Stop"))
        {
            if ( (playerState == PAUSE) || (playerState == PLAY))
            {
                theSoundPlayer.stopPlayback();
                playerState = STOP;
                secondsAmount = 0;
                acPosBar.setLocation(posBarBounds[0],posBarLocation[1]);
                offScreenGraphics.drawImage(iconsImage[2], iconsLocation[0], iconsLocation[1], this);
				offScreenGraphics.drawImage(iconsImage[4], iconsLocation[2], iconsLocation[3], this);
                repaint();
            }
        }

        /*----------*/
        /*-- Next --*/
        /*----------*/
        else if (e.getActionCommand().equals("Next"))
        {
           	// Try to get next song from the playlist
           	playlist.nextCursor();
           	PlaylistItem pli = playlist.getCursor();
			this.setCurrentSong(pli);
        }

        /*--------------*/
        /*-- Previous --*/
        /*--------------*/
        else if (e.getActionCommand().equals("Previous"))
        {
           	// Try to get previous song from the playlist
           	playlist.previousCursor();
           	PlaylistItem pli = playlist.getCursor();
			this.setCurrentSong(pli);
        }

        /*--------------------------------------------*/
        /*--     Exit window through Exit Button    --*/
        /*--------------------------------------------*/
        else if (e.getActionCommand().equals("Exit"))
        {
            if ( (playerState == PAUSE) || (playerState == PLAY))
            {
			 	theSoundPlayer.stopPlayback();
			}
            dispose();
            System.gc();
            System.exit(0);
        }
        /*--------------------------------------------*/
        /*-- Move full window through its Title Bar --*/
        /*--------------------------------------------*/
        else if (e.getActionCommand().equals("TitleBar"))
        {
            //trace(3,getClass().getName(),"X="+acTitle.getMouseX()+" Y="+acTitle.getMouseY());
            if (acTitleBar.isMousePressed() == false) FirstDrag = true;
            else
            {
        		int DeltaX = 0;
    	    	int DeltaY = 0;
	        	if (FirstDrag == false)
	        	{
	    	    	DeltaX = acTitleBar.getMouseX() - XDrag;
	    		    DeltaY = acTitleBar.getMouseY() - YDrag;
	    		    XDrag = acTitleBar.getMouseX() - DeltaX;
	    	        YDrag = acTitleBar.getMouseY() - DeltaY;
	    		    OrigineX = OrigineX + DeltaX;
		    	    OrigineY = OrigineY + DeltaY;
		    	    setLocation(OrigineX,OrigineY);
		        }
    		    else
	    	    {
		        	FirstDrag = false;
		        	XDrag = acTitleBar.getMouseX();
    		        YDrag = acTitleBar.getMouseY();
	    	    }
	    	}
        }
        else
        {

        }
    }


    public void paint(Graphics g)
    {
		if (offScreenImage != null)
        {
 	  		g.drawImage(offScreenImage, 0, 0, this);
        }
    }

	public void update(Graphics g)
	{
		//System.out.println("Update");
		paint(g);
    }

	/*-- Invoked when the mouse has been clicked on a component --*/
	//public void mouseClicked(MouseEvent me)
	//{}

	/*-- Invoked when the mouse enters a component --*/
	//public void mouseEntered(MouseEvent me)
	//{}

	/*-- Invoked when the mouse exits a component --*/
	//public void mouseExited(MouseEvent me)
	//{}

	/*-- Invoked when a mouse button has been pressed on a component --*/
 	//public void mousePressed(MouseEvent me)
	//{}

	/*-- Invoked when a mouse button has been released on a component --*/
 	//public void mouseReleased(MouseEvent me)
	//{}

	//public void mouseDragged(MouseEvent me)
	//{}

	//public void mouseMoved(MouseEvent me)
	//{}

    private File openFile(String file)
    {
		return new File(file);
	}

    public void setSkin(String sk)
    {
        thePath=sk;
    }

	/**
	 * Sends traces to Debug.
	 */
	private void trace(int level, String msg1, String msg2)
	{
		Debug dbg = Debug.getInstance();
		dbg.log(level,msg1+":"+msg2);
	}

	/**
	 * Entry point.
	 */
	public static void main(String[] args)
	{
        Player theGUI;
        String currentArg = null;
        String currentValue = null;
		String skin = null;
		String logfile = null;
		int loglevel = 0;
        for (int i=0;i<args.length;i++)
        {
			currentArg = args[i];
			if (currentArg.startsWith("-"))
			{
				if (currentArg.toLowerCase().equals("-skin"))
				{
					i++;
					if (i >= args.length) usage("skin value missing");
					currentValue = args[i];
					skin = currentValue.replace('\\', '/').replace('/',java.io.File.separatorChar);
				}
				else if (currentArg.toLowerCase().equals("-loglevel"))
				{
					i++;
					if (i >= args.length) usage("loglevel value missing");
					currentValue = args[i];
					try
					{
						loglevel = Integer.parseInt(currentValue);
					} catch (NumberFormatException nfe)
					  {
						  usage("Invalid number : "+nfe.getMessage());
					  }
				}
				else if (currentArg.toLowerCase().equals("-logfile"))
				{
					i++;
					if (i >= args.length) usage("logfile value missing");
					currentValue = args[i];
					logfile = currentValue.replace('\\', '/').replace('/',java.io.File.separatorChar);
				}
				else usage("Unknown parameter : "+currentArg);
			}
			else
			{
				usage("Invalid parameter :"+currentArg);
			}
		}
        theGUI= new Player(skin, loglevel, logfile);
		theGUI.show();
	}

	/**
	 * Displays usage.
	 */
	private static void usage(String msg)
	{
		System.out.println("jlGui 2.0 : "+msg);
		System.out.println("");
		System.out.println("jlGui 2.0 : Usage");
		System.out.println("            java javazoom.jlGui.Player [-skin skinFilename] [-loglevel number] [-logfile logFilename]");
		System.out.println("");
		System.out.println("            skinFilename : Filename to a Winamp Skin2.x");
		System.out.println("            number       : Level of traces (0,1,2)");
		System.out.println("            logFilename  : Filename for traces");
		System.out.println("");
		System.out.println("Homepage  : http://www.javazoom.net");
		System.exit(0);
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆国产欧美日韩综合精品二区 | 国产一区二区在线影院| 国产精品18久久久久久久网站| 99re这里都是精品| 精品国产凹凸成av人网站| 亚洲精选在线视频| 国产福利电影一区二区三区| 91.xcao| 一区免费观看视频| 国产在线不卡一区| 日韩欧美一区二区在线视频| 一区二区三区四区中文字幕| 粉嫩av亚洲一区二区图片| 欧美刺激午夜性久久久久久久| 一区二区在线电影| 岛国精品在线观看| 久久免费午夜影院| 激情伊人五月天久久综合| 欧美日韩高清在线播放| 亚洲精品中文字幕乱码三区| 成人动漫一区二区在线| 久久精品免费在线观看| 精品中文av资源站在线观看| 91精品国产综合久久国产大片 | 久久精品亚洲一区二区三区浴池| 天天综合天天综合色| 色婷婷综合久久久中文一区二区| 亚洲国产高清aⅴ视频| 国产尤物一区二区| 久久精品人人爽人人爽| 国产精品77777| 中文幕一区二区三区久久蜜桃| 国产在线播放一区三区四| 欧美一区二区三区免费大片 | 老司机精品视频导航| 欧美一区二区三区视频在线观看| 偷拍与自拍一区| 欧美日韩国产综合久久| 日本中文字幕不卡| 日韩精品中文字幕一区二区三区 | 国产精品18久久久久久久久| 久久久久9999亚洲精品| 国产成人综合亚洲网站| 亚洲国产一区视频| 欧美色男人天堂| 日韩一区精品字幕| 日韩精品一区二区三区三区免费| 久久66热re国产| 国产欧美日韩中文久久| 99久久国产综合精品色伊| 亚洲精品一二三区| 正在播放一区二区| 激情综合网av| 国产精品人成在线观看免费| 91久久国产最好的精华液| 亚洲成a人v欧美综合天堂| 日韩欧美一区二区在线视频| 国产一区 二区| 亚洲免费观看高清完整版在线观看| 一本到不卡免费一区二区| 日韩和欧美一区二区| 国产亚洲1区2区3区| 色婷婷久久久综合中文字幕 | 国产精品一区二区在线播放| 国产欧美一区二区精品忘忧草| 一本到高清视频免费精品| 日韩精品成人一区二区在线| 国产日韩三级在线| 欧美在线一二三| 国产原创一区二区| 亚洲午夜电影在线观看| 337p粉嫩大胆色噜噜噜噜亚洲| 91网站最新地址| 久久99精品久久久久久久久久久久| 中日韩av电影| 欧美一区二区三区在线观看| 成人av在线一区二区| 男男视频亚洲欧美| 亚洲欧美日韩一区二区三区在线观看| 欧美一区二区三区四区久久| www.日韩大片| 久久国产精品99精品国产| 亚洲日本在线a| 国产亚洲欧洲997久久综合| 欧美片网站yy| 91麻豆国产福利在线观看| 国产剧情在线观看一区二区| 日韩综合小视频| 一区二区在线免费观看| 国产欧美日韩另类一区| 日韩欧美国产综合一区 | 国产成人av在线影院| 亚洲gay无套男同| 国产精品初高中害羞小美女文 | 欧美日韩日日摸| 99久久99久久综合| 国产精品一级在线| 久久91精品国产91久久小草| 亚洲地区一二三色| 亚洲一区视频在线| 国产精品久久久久久妇女6080 | 国产精品久久福利| 久久久久久久国产精品影院| 日韩欧美精品在线视频| 欧美日本乱大交xxxxx| 在线日韩av片| 在线看不卡av| 在线日韩av片| 在线观看亚洲精品| 69久久99精品久久久久婷婷| 欧美伊人久久大香线蕉综合69| 91网站最新网址| 色婷婷综合久久久中文一区二区| 99re6这里只有精品视频在线观看| 成人少妇影院yyyy| 不卡一区二区在线| 色一区在线观看| 色综合久久综合中文综合网| 91麻豆免费视频| 色88888久久久久久影院按摩 | 在线不卡欧美精品一区二区三区| 一本一本久久a久久精品综合麻豆| 成人国产一区二区三区精品| www.久久久久久久久| 91亚洲国产成人精品一区二三| 99精品视频一区二区| 在线观看欧美黄色| 欧美剧在线免费观看网站| 日韩一区二区精品在线观看| 26uuu国产电影一区二区| 国产日韩精品一区二区浪潮av| 国产视频一区在线观看| 中文字幕一区av| 亚洲国产精品一区二区www在线| 免费三级欧美电影| 国产精品一区二区无线| av电影在线观看完整版一区二区| 色久综合一二码| 欧美男男青年gay1069videost| 欧美一区二区啪啪| 久久久久久久久免费| 亚洲欧美另类综合偷拍| 日韩黄色免费网站| 成人激情综合网站| 欧美三级日韩在线| 久久夜色精品国产噜噜av| 综合久久综合久久| 免费在线观看精品| 99久久精品国产导航| 欧美一区永久视频免费观看| 欧美国产精品专区| 日韩黄色在线观看| www.欧美日韩| 欧美videos中文字幕| 中文字幕亚洲综合久久菠萝蜜| 日韩电影网1区2区| 99久久久精品免费观看国产蜜| 4438亚洲最大| 亚洲天堂网中文字| 激情丁香综合五月| 欧美色视频在线观看| 国产精品视频一区二区三区不卡| 亚洲成av人片在www色猫咪| 国产福利精品一区二区| 欧美高清视频www夜色资源网| 国产精品美女久久久久久久网站| 视频一区中文字幕国产| 99久久精品免费| 久久久久久久一区| 日韩精品色哟哟| 在线视频欧美精品| 国产精品久久久久久久裸模| 久久99国产精品尤物| 国产精品欧美一区二区三区| 日韩高清不卡一区二区三区| 91香蕉国产在线观看软件| 久久精品无码一区二区三区| 无码av中文一区二区三区桃花岛| 色综合久久综合中文综合网| 国产日韩欧美麻豆| 看片的网站亚洲| 91精品国产麻豆国产自产在线 | 爽好久久久欧美精品| 91成人免费在线视频| 国产精品乱人伦中文| 国产激情偷乱视频一区二区三区| 日韩欧美在线影院| 青青草原综合久久大伊人精品| 欧美三级电影在线看| 亚洲精品水蜜桃| 91网站视频在线观看| 亚洲天堂免费看| 97精品视频在线观看自产线路二| 中国av一区二区三区| 国产99久久久久| 国产日韩欧美麻豆| 国产一区二区看久久| 精品毛片乱码1区2区3区| 蜜乳av一区二区| 精品欧美乱码久久久久久|