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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? musicplayer.js

?? ext-2.3.0
?? JS
字號(hào):
/*
 * Ext JS Library 0.30
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.ns('Ext.air');

Ext.air.MusicPlayer = Ext.extend(Ext.util.Observable, {
	/**
	 * The currently active Sound. Read-only.
	 * @type air.Sound
	 * @property activeSound
	 */
	activeSound: null,
	/**
	 * The currently active SoundChannel. Read-only.
	 * @type air.SoundChannel
	 * @property activeChannel
	 */
	activeChannel: null,
	/**
	 * The currently active Transform. Read-only.
	 * @type air.SoundTransform
	 * @property activeTransform
	 */
	activeTransform: new air.SoundTransform(1, 0),
	// private 
	pausePosition: 0,
	/**
	 * @cfg {Number} progressInterval
	 * How often to fire the progress event when playing music in milliseconds
	 * Defaults to 500.
	 */
	progressInterval: 500,
	
	constructor: function(config) {
		config = config || {};
		Ext.apply(this, config);
		
		this.addEvents(
			/**
			 * @event stop
			 */
			'stop',
			/**
			 * @event pause
			 */
			'pause',
			/**
			 * @event play
			 */
			'play',
			/**
			 * @event load
			 */
			'load',
			/**
			 * @event id3info
			 */
			'id3info',
			/**
			 * @event complete
			 */
			'complete',
			/**
			 * @event progress
			 */
			'progress',
			/**
			 * @event skip
			 */
			'skip'
		);
		
		Ext.air.MusicPlayer.superclass.constructor.call(this, config);
		this.onSoundFinishedDelegate = this.onSoundFinished.createDelegate(this);
		this.onSoundLoadDelegate = this.onSoundLoad.createDelegate(this);
		this.onSoundID3LoadDelegate = this.onSoundID3Load.createDelegate(this);

		Ext.TaskMgr.start({
			run: this.notifyProgress,
			scope: this,
			interval: this.progressInterval
		});		
	},	

	/**
	 * Adjust the volume
	 * @param {Object} percent
	 * Ranges from 0 to 1 specifying volume of sound.
	 */
	adjustVolume: function(percent) {
		this.activeTransform.volume = percent;
		if (this.activeChannel) {		
			this.activeChannel.soundTransform = this.activeTransform;		
		}		
	},
	/**
	 * Stop the player
	 */
	stop: function() {
		this.pausePosition = 0;		
		if (this.activeChannel) {
			this.activeChannel.stop();			
			this.activeChannel = null;			
		}		
		if (this.activeSound) {
			this.activeSound.removeEventListener(air.Event.COMPLETE, this.onSoundLoadDelegate);
			this.activeSound.removeEventListener(air.Event.ID3, this.onSoundID3LoadDelegate);
			this.activeSound.removeEventListener(air.Event.SOUND_COMPLETE, this.onSoundFinishedDelegate);						
		}
	},
	/**
	 * Pause the player if there is an activeChannel
	 */
	pause: function() {
		if (this.activeChannel) {
			this.pausePosition = this.activeChannel.position;
			this.activeChannel.stop();			
		}		
	},
	/**
	 * Play a sound, if no url is specified will attempt to resume the activeSound
	 * @param {String} url (optional)
	 * Url resource to play
	 */
	play: function(url) {
		if (url) {			
			this.stop();			
			var req = new air.URLRequest(url);
			this.activeSound = new air.Sound();
			this.activeSound.addEventListener(air.Event.SOUND_COMPLETE, this.onSoundFinishedDelegate);						
			this.activeSound.addEventListener(air.Event.COMPLETE, this.onSoundLoadDelegate);			
			this.activeSound.addEventListener(air.Event.ID3, this.onSoundID3LoadDelegate);
			this.activeSound.load(req);						
		} else {
			this.onSoundLoad();	
		}	
	},
	
	/**
	 * Skip to a specific position in the song currently playing.
	 * @param {Object} pos
	 */
	skipTo: function(pos) {
		if (this.activeChannel) {
			this.activeChannel.stop();		
			this.activeChannel = this.activeSound.play(pos);	
			this.activeChannel.soundTransform = this.activeTransform;		
			this.fireEvent('skip', this.activeChannel, this.activeSound, pos);
		}
	},
	
	/**
	 * Returns whether or not there is an active SoundChannel.
	 */
	hasActiveChannel: function() {
		return !!this.activeChannel;
	},
	
	// private
	onSoundLoad: function(event) {
		if (this.activeSound) {
			if (this.activeChannel) {
				this.activeChannel.stop();
			}
			this.activeChannel = this.activeSound.play(this.pausePosition);
			this.activeChannel.soundTransform = this.activeTransform;
			this.fireEvent('load', this.activeChannel, this.activeSound);
		}		
	},
	// private
	onSoundFinished: function(event) {
		// relay AIR event
		this.fireEvent('complete', event);
	},
	// private
	onSoundID3Load: function(event) {
		this.activeSound.removeEventListener(air.Event.ID3, this.onSoundID3LoadDelegate);		
		var id3 = event.target.id3;		
		this.fireEvent('id3info', id3);
	},
	// private
	notifyProgress: function() {
		if (this.activeChannel && this.activeSound) {
			var playbackPercent = 100 * (this.activeChannel.position / this.activeSound.length);			
			// SOUND_COMPLETE does not seem to work consistently.
			if (playbackPercent > 99.7) {
				this.onSoundFinished();				
			} else {
				this.fireEvent('progress', this.activeChannel, this.activeSound);
			}	
		}		
	}		
});

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩毛片高清在线播放| 99精品国产视频| 五月综合激情婷婷六月色窝| 亚洲天堂久久久久久久| 国产欧美日产一区| 日本一区二区不卡视频| 国产精品素人视频| 综合婷婷亚洲小说| 亚洲一二三四在线观看| 全国精品久久少妇| 国产在线麻豆精品观看| 国产成人精品三级麻豆| 99麻豆久久久国产精品免费优播| 成人黄色av电影| 91欧美一区二区| 欧美日韩日日摸| 久久综合精品国产一区二区三区| 国产欧美精品在线观看| 亚洲视频一区在线| 亚洲妇熟xx妇色黄| 国产中文字幕一区| 色婷婷一区二区| 56国语精品自产拍在线观看| 337p日本欧洲亚洲大胆精品| 国产精品全国免费观看高清| 樱花草国产18久久久久| 另类小说综合欧美亚洲| 一本一道波多野结衣一区二区 | 国产一区亚洲一区| 国产精品无码永久免费888| 久久成人羞羞网站| 激情小说亚洲一区| 91日韩一区二区三区| 欧美一区二区在线播放| 国产精品欧美久久久久一区二区| 亚洲欧美日韩中文字幕一区二区三区 | 亚洲国产成人自拍| 亚洲无线码一区二区三区| 男人的j进女人的j一区| 国产高清不卡二三区| 欧美日韩一区二区三区视频 | 中文字幕中文字幕中文字幕亚洲无线| 一区二区三区日韩在线观看| 国产在线精品一区二区夜色| 在线一区二区三区四区五区| 国产亚洲美州欧州综合国| 一区二区三区日韩精品视频| 国产精品正在播放| 制服丝袜亚洲网站| 亚洲人妖av一区二区| 国产一区二区三区黄视频| 日韩精品一区二区三区三区免费| 日本一区二区动态图| 亚洲欧美综合在线精品| 日日夜夜一区二区| 色婷婷久久一区二区三区麻豆| xnxx国产精品| 美女精品自拍一二三四| 欧美性色aⅴ视频一区日韩精品| 国产精品午夜在线| 日本大胆欧美人术艺术动态 | 久久网这里都是精品| 日韩中文欧美在线| 国产精品久久久久天堂| 91精品国产一区二区三区| 色综合色综合色综合| 91传媒视频在线播放| 欧美韩日一区二区三区四区| 麻豆久久一区二区| 5858s免费视频成人| 亚洲一区二区美女| 91久久精品一区二区二区| 亚洲三级久久久| 欧洲国内综合视频| 亚洲韩国精品一区| 91成人免费电影| 亚洲一区二区高清| 911国产精品| 视频在线在亚洲| 欧美一区午夜精品| 奇米色777欧美一区二区| 欧美福利电影网| 美女诱惑一区二区| 精品国产sm最大网站| 国产成人在线看| 国产精品久久久久久户外露出 | 7799精品视频| 精品一区二区日韩| 欧美国产日产图区| 99综合影院在线| 午夜视频一区在线观看| 91精品综合久久久久久| 国产一区三区三区| 中文字幕一区三区| 欧美在线你懂的| 奇米一区二区三区av| 国产精品久久久久久久岛一牛影视 | 久久精品999| 国产午夜精品一区二区三区嫩草| 99久久国产免费看| 国产精品第13页| 欧美高清视频一二三区 | 麻豆精品久久久| 日本一区二区综合亚洲| 欧洲另类一二三四区| 乱一区二区av| 中文字幕视频一区| 欧美一区二区三区视频在线观看| 国产美女在线观看一区| 一区二区三区**美女毛片| 欧美成人猛片aaaaaaa| 成人免费不卡视频| 麻豆精品在线观看| 亚洲人成网站精品片在线观看| 91精品婷婷国产综合久久| 成人免费高清视频在线观看| 亚洲成人久久影院| 日本一区二区免费在线观看视频| 欧美日韩一区二区三区高清| 粉嫩绯色av一区二区在线观看| 亚洲福利电影网| 日韩毛片高清在线播放| 欧美一区二区三区系列电影| 91在线视频免费观看| 国产一区二区三区在线观看精品| 亚洲综合一区二区精品导航| 国产午夜精品一区二区三区四区| 91.xcao| 在线欧美日韩精品| youjizz久久| 国产精品一区二区男女羞羞无遮挡| 亚洲国产另类av| 亚洲人成伊人成综合网小说| 久久久久久久综合| 日韩精品中文字幕一区| 91精品国产综合久久久久久久 | 日本道色综合久久| 韩国中文字幕2020精品| 国产99久久久国产精品潘金网站| 美腿丝袜亚洲三区| 天天综合网 天天综合色| 一区二区三区中文在线观看| 国产嫩草影院久久久久| 久久精品视频网| 国产欧美1区2区3区| 欧美精品一区二区在线观看| 日韩欧美二区三区| 欧美大片一区二区三区| 制服丝袜av成人在线看| 欧美精选一区二区| 欧美精品日韩综合在线| 欧美日韩国产区一| 欧美精品在线观看播放| 欧美一区二区在线视频| 日韩一级黄色片| 欧美成人精品福利| 日韩精品资源二区在线| 精品福利一区二区三区| 国产日韩av一区二区| 日本一区二区不卡视频| 亚洲人成在线播放网站岛国| 一区二区三区国产精品| 亚洲成av人片观看| 免费成人av在线| 国产盗摄视频一区二区三区| 高清成人免费视频| 97久久超碰国产精品| 欧美系列一区二区| 欧美大胆人体bbbb| 国产欧美精品国产国产专区| 自拍偷在线精品自拍偷无码专区| 伊人夜夜躁av伊人久久| 视频在线观看一区二区三区| 精品一区二区三区在线观看 | gogogo免费视频观看亚洲一| 99国产精品视频免费观看| 在线精品视频免费观看| 日韩亚洲欧美中文三级| 欧美韩国一区二区| 五月天一区二区| 国产高清无密码一区二区三区| gogo大胆日本视频一区| 制服丝袜激情欧洲亚洲| 国产精品私房写真福利视频| 亚洲国产精品一区二区久久恐怖片 | 一区二区三区在线视频观看58 | 亚洲日本韩国一区| 青青草伊人久久| 成人国产精品视频| 色婷婷激情综合| 久久你懂得1024| 亚洲伊人色欲综合网| 国产精品911| 91麻豆精品国产91久久久资源速度 | 亚洲永久精品大片| 国内精品久久久久影院色| 在线观看国产91| 国产精品福利一区| 美女网站在线免费欧美精品| 在线区一区二视频|