<?xml version="1.0" encoding="utf-8"?>
<window left="0" top="0" width="977" height="63" titleBar="false" resizeMargins="0,0,0,0" onload="Onload();OnLoadCommon();" onunload="OnUnLoadCommon();">
	<script src="common.js" />
	<script src="../Balloons.js" />
	<script src="playcontrolcommon.js" />
	<script src="playcontrol.xml.js" />
	<script>
	<![CDATA[
		function Onload()
		{
			window.visible=true;

			//获取播放控制接口
			GetPPPlayer();

			//volumeslider
			if (ppplayer)
			{
				var vol = ppplayer.nVolume;
				var ewa = ppplayer.get_EWA();
				if(ewa && ewa.Mute) vol=0;
				var nVol = vol;
				if (vol > 100)
				{
					vol = 100;
				}
				else if (vol < 0)
				{
					vol = 0;
				}
				ppplayer.bNoVolumeTips = true;
				$("volumeslider").value = vol;
				ppplayer.bNoVolumeTips = false;
				var txt = "音量："+nVol+"%";
				if(nVol>=100 && nVol<1000)
				{
						var accKey = "↑";
						var mainwindow = Components.GetObject2("@pplive.com/ui/mainwindow;1");
						if(mainwindow) accKey = mainwindow.getHotKeyText("key_volumeInc");
						txt = txt + "  \r\n按 " + accKey + " 继续放大音量";
				}
				if($("volumeslider").lasttooltip!=txt)
				{
					$("volumeslider").tooltip =txt;
					$("volumeslider").lasttooltip=txt;
				}
			}
			window.$ = function(id)
			{
				return document.getElementById(id);
			};
		}
	]]>
	</script>
	<subwindow left="0" top="20" width="977" height="43" horizontalAlignment="stretch" verticalAlignment="bottom" visible="true" passThrough="false" backgroundColor="#FF00FF" backgroundImage="Controlbar.bmp" backgroundImageStretchMode="stretch">
	</subwindow>
	<subwindow left="0" top="0" width="977" height="63" horizontalAlignment="stretch" verticalAlignment="stretch" visible="true" passThrough="false">
		<subwindow left="0" top="0" width="977" height="20" horizontalAlignment="stretch" verticalAlignment="bottom" visible="true" passThrough="false" backgroundColor="#FF00FF">
			<label id="live2msg" left="0" top="0" width="977" height="20" horizontalAlignment="stretch" verticalAlignment="stretch" textAlignment="center vcenter" fontFace="宋体" fontSize="12" foregroundColor="#dddddd" backgroundColor="#151515">	
				<button id="tip" left="959" top="2" width="16" height="16" image="statetipclose.png" horizontalAlignment="right" onclick="OnCloseStateTip();" tooltip="关闭提示"/>
			</label>
		</subwindow>
		<subwindow id="playctrl" left="0" top="20" width="977" height="11" horizontalAlignment="stretch" verticalAlignment="bottom" visible="true" passThrough="false" onsize="OnWinSize();">
			<label id="playtimelabel" left="871" top="0" width="100" height="11" value="00:00/00:00" horizontalAlignment="right" textAlignment="right vcenter" fontFace="Arial" fontSize="9" foregroundColor="RGB(204,204,204)"/>		
			<slider id="playslider" left="5" top="0" width="882" height="11" backgroundImage="PlayProgress1.bmp" foregroundImage="PlayProgress2.bmp" progressImage="PlayProgress3.bmp" thumbImage="PlayProgressThumb_normal.png" thumbHoverImage="PlayProgressThumb_hover.png" thumbDownImage="PlayProgressThumb_down.png" borderSize="0" min="0" value="0" max="0" disabled="false" horizontalAlignment="left" onmousemove="OnPlaySliderMove(event);" ondragbegin="OnPlaySliderDragBegin(this.value);" ondragend="OnPlaySliderDragEnd(this.value);" ondragabort="OnPlaySliderDragEnd(this.value);" thumbOverlay="false" imageStretchMode="ninegrid" nineGridMargins="2,0,2,0" cursor="hand" onsize="OnSliderSize();" onchange="OnSliderChange(this.value);" visible="false" onmouseout="OnSliderMouseOut(event);">
				<button id="curplaytagbtn" left="0" top="1" width="11" height="11" image="mark_live3_NM2.png" hoverImage="mark_live3_HV2.png" downImage="mark_live3_HV2.png" disabledImage="mark_live3_NM2.png" onclick="OnCurPlayTagCommon(this);" cursor="hand" visible="false"  onmousemove="OnCurPlayTagHover(this);" onmouseout="OnCurPlayTagOut();" />

				<button id="skipheadbeg" left="-20" top="0" width="11" height="11" image="mark_skip_NM2.png" hoverImage="mark_skip_HV2.png" downImage="mark_skip_HV2.png" disabledImage="mark_skip_NM2.png" onclick="OnHeadBegCommon(this);" cursor="hand" visible="false" onmousemove="HeadBegHover(this);" onmouseout="HeadBegOut();" />
				<button id="skipheadend" left="-20" top="0" width="11" height="11" image="mark_skip_NM2.png" hoverImage="mark_skip_HV2.png" downImage="mark_skip_HV2.png" disabledImage="mark_skip_NM2.png" onclick="OnHeadEndCommon(this);" cursor="hand" visible="false" onmousemove="HeadEndHover(this);" onmouseout="HeadEndOut();" />
				<button id="skiptailbeg" left="-20" top="0" width="11" height="11" image="mark_skip_NM2.png" hoverImage="mark_skip_HV2.png" downImage="mark_skip_HV2.png" disabledImage="mark_skip_NM2.png" onclick="OnTailBegCommon(this);" cursor="hand" visible="false" onmousemove="TailBegHover(this);" onmouseout="TailBegOut();" />
				<button id="skiptailend" left="-20" top="0" width="11" height="11" image="mark_skip_NM2.png" hoverImage="mark_skip_HV2.png" downImage="mark_skip_HV2.png" disabledImage="mark_skip_NM2.png" onclick="OnTailEndCommon(this);" cursor="hand" visible="false" onmousemove="TailEndHover(this);" onmouseout="TailEndOut();" />

				<thumb id="thumb" cursor="hand"/>
			</slider>
			<label id="playtimebeg" left="5" top="0" width="25" height="11" value="00:00" horizontalAlignment="left" textAlignment="center vcenter" fontFace="Arial" fontSize="9" foregroundColor="RGB(204,204,204)" visible="false"/>
			<label id="playtimeend" left="947" top="0" width="25" height="11" value="00:00" horizontalAlignment="right" textAlignment="center vcenter" fontFace="Arial" fontSize="9" foregroundColor="RGB(204,204,204)" visible="false"/>
		</subwindow>
		<subwindow left="4" top="33" width="973" height="32" horizontalAlignment="stretch" verticalAlignment="bottom" visible="true" passThrough="false" onsize="OnStateInfoSizeCommon();">
			<button id="playbtn" left="0" top="0" width="30" height="30" image="play_normal.png" hoverImage="play_hover.png" downImage="play_down.png" disabledImage="play_disabled.png" onclick="OnPlayCommon();" tooltip="播放" />
			<button id="pausebtn" left="0" top="0" width="30" height="30" image="pause_normal.png" hoverImage="pause_hover.png" downImage="pause_down.png" disabledImage="pause_disabled.png" onclick="OnPauseCommon();" tooltip="暂停" visible="false"/>
			<button id="stopbtn" left="31" top="0" width="30" height="30" image="stop_normal.png" hoverImage="stop_hover.png" downImage="stop_down.png" disabledImage="stop_disabled.png" onclick="OnStopCommon();" tooltip="停止"/>
			<button id="previousbtn" left="63" top="0" width="30" height="30" image="previous_normal.png" hoverImage="previous_hover.png" downImage="previous_down.png" disabledImage="previous_disabled.png" onclick="OnPreviousCommon();" tooltip="上一集"/>
			<button id="nextbtn" left="87" top="0" width="30" height="30" image="next_normal.png" hoverImage="next_hover.png" downImage="next_down.png" disabledImage="next_disabled.png" onclick="OnNextCommon();" tooltip="下一集"/>
			<button id="mutebtn" left="113" top="0" width="30" height="30" image="mute_normal.png" hoverImage="mute_hover.png" downImage="mute_down.png" disabledImage="mute_disabled.png" onclick="OnMute();" tooltip="取消静音"/>
			<button id="mute2btn" left="113" top="0" width="30" height="30" image="mute2_normal.png" hoverImage="mute2_hover.png" downImage="mute2_down.png" disabledImage="mute2_disabled.png" onclick="OnMute();" tooltip="静音"/>
			<button id="mute3btn" left="113" top="0" width="30" height="30" image="mute3_normal.png" hoverImage="mute3_hover.png" downImage="mute3_down.png" disabledImage="mute3_disabled.png" onclick="OnMute();" tooltip="静音"/>
			<button id="mute4btn" left="113" top="0" width="30" height="30" image="mute4_normal.png" hoverImage="mute4_hover.png" downImage="mute4_down.png" disabledImage="mute4_disabled.png" onclick="OnMute();" tooltip="静音"/>
			<button id="unmutebtn" left="113" top="0" width="30" height="30" image="mute_normal.png" hoverImage="mute_hover.png" downImage="mute_down.png" disabledImage="mute_disabled.png" onclick="OnMute();" tooltip="取消静音"/>
			<button id="muteplusbtn" left="113" top="0" width="30" height="30" image="muteplus_normal.png" hoverImage="muteplus_hover.png" downImage="muteplus_down.png" disabledImage="muteplus_disabled.png" onclick="OnMute();" tooltip="静音"/>
			<slider id="volumeslider" left="137" top="0" width="64" height="30" backgroundImage="vol_bar1.bmp" foregroundImage="vol_bar2.bmp" foregroundImageStretchMode="left" thumbImage="SliderThumb_hover.png" thumbHoverImage="SliderThumb_normal.png" thumbDownImage="SliderThumb_down.png" borderSize="0" min="0" value="0" max="100" disabled="false"  onchange="OnVolumeSliderChange(this.value);" thumbOverlay="false" cursor="hand" ondragbegin="OnVolumeSliderDragBegin(this.value);" ondragend="OnVolumeSliderDragEnd(this.value);"/>
			<subwindow id="stateinfo" left="203" top="0" width="735" height="30" horizontalAlignment="stretch" verticalAlignment="bottom" visible="true" backgroundImage="playerinfo.bmp" backgroundImageStretchMode="ninegrid" nineGridMargins="9,9,9,9" >
				<label id="stateinfolabel" left="10" top="0" width="700" height="30" fontFace="Arial"  fontSize="11" textAlignment="left vcenter" foregroundColor="RGB(204,204,204)" horizontalAlignment="stretch" value="欢迎使用PPTV" textOverflow="ellipsis" />
				<widget id="stateinfogallop" left="10" top="7" width="700" height="16" horizontalAlignment="stretch" verticalAlignment="top" contractId="" useService="true"/>  <!--  -->
				<image id="statespeedinfo" left="710" top="10" width="15" height="12" src="speed0.png" horizontalAlignment="right" visible="true" passThrough="false" onmouseover="OnSpeedInfoOver.call(this);" onmouseout="OnSpeedInfoOut();"/>
			</subwindow>
			<button id="fullscreenbtn" horizontalAlignment="right" left="940" top="0" width="30" height="30" image="fullscreen_normal.png" hoverImage="fullscreen_hover.png" downImage="fullscreen_down.png" disabledImage="fullscreen_disabled.png" onclick="OnFullscreenCommon();" tooltip="全屏"/>
			<button id="unfullscreenbtn" horizontalAlignment="right" left="916" top="0" width="54" height="30" image="unfullscreen_normal.png" hoverImage="unfullscreen_hover.png" downImage="unfullscreen_down.png" disabledImage="unfullscreen_disabled.png" onclick="OnUnfullscreenCommon();" tooltip="退出全屏"/>
		</subwindow>
	</subwindow>
</window>