currTimeState°³Ã¼ state, stateString ¼Ó¼º ¿¹Á¦

state=0
stateString=

'½ÃÀÛ'ÇÏ°í ´ÜÃßµéÀ» Ŭ¸¯ÇØ º¸¶ó.

<HTML xmlns:t='urn:schemas-microsoft-com:time'>
<HEAD>
<IMPORT namespace="t" implementation="#default#time2">
<SCRIPT>
function updateBtns(){ // ÇöÀç ½Ã°£ °³Ã¼ »óÅ¿¡ ±âÁØÇÏ¿© °¢ ´ÜÃ߸¦ ¾÷µ¥ÀÌÆ®ÇÑ´Ù.
  switch (mObj.currTimeState.stateString){
    case 'active':
      if (mObj.currTimeState.isPaused==true){
        playBtn.disabled=false;
        holdBtn.disabled=false;
        stopBtn.disabled=false;
        pauseBtn.disabled=true;
        resumeBtn.disabled=false;
      } else {
        playBtn.disabled=true;
        holdBtn.disabled=false;
        stopBtn.disabled=false;
        pauseBtn.disabled=false;
        resumeBtn.disabled=true;
      }
      break;
    case 'holding':
      playBtn.disabled=false;
      holdBtn.disabled=true;
      stopBtn.disabled=false;
      pauseBtn.disabled=true;
      resumeBtn.disabled=true;
      break;
    case 'inactive':
      playBtn.disabled=false;
      holdBtn.disabled=true;
      stopBtn.disabled=true;
      pauseBtn.disabled=true;
      resumeBtn.disabled=true;
      break;
  }
  showA.innerHTML=mObj.currTimeState.state;
  showB.innerHTML=mObj.currTimeState.stateString;
}
</SCRIPT>
<SCRIPT for="document" event="onclick" language="Javascript">updateBtns();</SCRIPT>
<STYLE>
.time{ behavior: url(#default#time2);}
.showP button {width:70}
</STYLE>
</HEAD>

<BODY onload="updateBtns()">
<T:video class="time" id="mObj" begin="indefinite" style="position:relative;top:0;height:200;" src="../../../media/AVITest.avi" fill="fill" />
<P class=showP>
<BUTTON id="playBtn" onclick="mObj.beginElement();">½ÃÀÛ</BUTTON>
<BUTTON id="pauseBtn" onclick="mObj.pauseElement();">ÀϽÃÁßÁö</BUTTON>
<BUTTON id="resumeBtn" onclick="mObj.resumeElement();">°è¼Ó</BUTTON>
<BUTTON id="holdBtn" onclick="mObj.fill='hold';mObj.endElement()">ÁßÁö</BUTTON>
<BUTTON id="stopBtn" onclick="mObj.fill='remove';mObj.endElement()">Á¾·á</BUTTON>
</P>
<DIV>state=<SPAN id="showA">0</SPAN><BR>
stateString=<SPAN id="showB"></SPAN>
</DIV>
</BODY>
</HTML>