½Ã°£ ¿¤·¹¸àÆ®ÀÇ ÇöÀç ÁøÇà »óŸ¦ ¹ÝȯÇÑ´Ù.

Àμö
: (¼Ó¼º ºÎµ¿¼Ò¼öÁ¡ ¼öÄ¡)

¼Ó¼º°ªÀº ½Ã°£ ¿¤·¹¸àÆ®ÀÇ ÇöÀç ÁøÇà »óŸ¦ ¿¤·¹¸àÆ®ÀÇ simpleDur ¼Ó¼º¿¡ »ó´ëÀûÀ¸·Î ³ªÅ¸³»´Â ºÎµ¿¼Ò¼öÁ¡ ¼öÄ¡ÀÌ´Ù.

À¯È¿ÇÑ ¼Ó¼º°ªÀÇ ¹üÀ§´Â 0.0¿¡¼­ 1.0 »çÀÌÀÌ´Ù.

ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

ÀÌ ¼Ó¼º°ªÀº ½Ã°£ ¿¤·¹¸àÆ®ÀÇ Áö¼Ó½Ã°£µ¿¾È ¿¬¼ÓÀûÀ¸·Î ¾÷µ¥ÀÌÆ®µÈ´Ù. autoReverse ¼Ó¼ºÀÌ true·Î ¼³Á¤µÇ¾úÀ¸¸é, then progress ´Â 1.0¿¡¼­ »çÀÛµÇ°í ¿¡ µµ´ÞÇÒ ¶§±îÁö ȤÀº ½Ã°£ÀÌ Á¾·áµÉ ¶§±îÁö °¨¼ÒµÇ¸é¼­ ÁøÇàµÈ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
HTML+time

ÀÌ ¼Ó¼ºÀº (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡ Microsoft°¡ È®ÀåÇÑ °ÍÀÌ´Ù.


videoObj.currTimeState.progress=0%
videoObj.currTimeState.stateString=
10ºÎÅÍ ¿£Áø Á¡È­½Ã°£ Ä«¿îÆ® ´Ù¿î 7 6 ½ÃÀÛ 3 2 1 0 ¹ß»ç! ¹Ì±¹ÀÎÀÌ ¿ìÁÖ·Î µ¹¾Æ°£´Ù. µð½ºÄ¿¹ö¸®È£°¡ ¹ß»ç´ë¸¦ ¶°³­´Ù. µð½ºÄ¿¹ö¸®È£.
Video Á¦¾î:

½Ã°£À» ¹éºÐÀ²·Î Ç¥½ÃÇÏ´Â ¹æ½ÄÀÇ ¿¹Á¦ÀÌ´Ù.

<HTML xmlns:t="urn:schemas-microsoft-com:time">
<HEAD>
<SCRIPT>
function update(){ // ÁøÇà»óÅÂÀÇ ½Ã°£À» ¾÷µ¥ÀÌÆ®
  var pro=videoObj.currTimeState.progress;
  var sPro=pro.toString();  // ¹®ÀÚ¿­·Î º¯È¯
  if (videoObj.currTimeState.stateString != 'holding'){
    if (pro !=0){
      if (sPro.substr(2,1)=='0') sPro=sPro.substr(3,1);  // ÇÑÀÚ¸® ¼öÄ¡ ±¸ÇÔ(1-9)
      else sPro=sPro.substr(2,2);  // µÎÀÚ¸® ¼öÄ¡ ±¸ÇÔ(10-99)
    } else sPro='0';
  } else sPro='100'; // Á¾·á½Ã ¼öÄ¡
  showProgress.innerText=sPro;
  showStatus.innerText=videoObj.currTimeState.stateString;
}

function updateBtns(){ // ´ÜÃßµéÀÇ ¾÷µ¥ÀÌÆ®
  switch (videoObj.currTimeState.stateString){
    case 'active':
      if (videoObj.currTimeState.isPaused==true){
        playBtn.disabled=true;
        stopBtn.disabled=false;
        pauseBtn.disabled=true;
        resumeBtn.disabled=false;
      } else {
        playBtn.disabled=true;
        stopBtn.disabled=false;
        pauseBtn.disabled=false;
        resumeBtn.disabled=true;
      }
      break;
    case 'inactive':
      playBtn.disabled=false;
      stopBtn.disabled=true;
      pauseBtn.disabled=true;
      resumeBtn.disabled=true;
      break;
    case 'holding':
      playBtn.disabled=false;
      stopBtn.disabled=true;
      pauseBtn.disabled=true;
      resumeBtn.disabled=true;
      break;
  }
}
</SCRIPT>
<SCRIPT for="document" event="onclick" language="jscript">updateBtns();</SCRIPT>
<STYLE>.time{ behavior: url(#default#time2);}</STYLE>
</HEAD>

<BODY id="docBody"><! onload="update(); updateBtns();">

<SPAN id="timer" class="time" begin="videoObj.begin" dur=".25" repeatcount="indefinite" onrepeat="update();" fill="freeze"></SPAN>
videoObj.currTimeState.progress=<SPAN style="font-weight:bold;" id="showProgress">0</SPAN>%<BR>
videoObj.currTimeState.stateString=<SPAN id="showStatus"></SPAN>

<TABLE width="400'' cellspacing="5" style="background-color:ffffaa;">
<TR>
<TD>
<T:VIDEO class="time" id="videoObj"
  src="http://msdn.microsoft.com/workshop/samples/author/behaviors/media/movie.avi"
  begin="indefinite" fill="freeze" onend="updateBtns(); update();" />
</TD>
</TR>
<TR>
<TD id="caption" style="background-color:eeeeee;height:1.5em">
<T:SEQ id="seqObj" class="time" begin="videoObj.begin+.5">
<SPAN id="Swt10" class="time" dur="1">10ºÎÅÍ</SPAN>
<SPAN id="Swt8" class="time" dur="2">¿£Áø Á¡È­½Ã°£ Ä«¿îÆ® ´Ù¿î</SPAN>
<SPAN id="Swt7" class="time" dur="1">7</SPAN>
<SPAN id="Swt6" class="time" dur="1">6</SPAN>
<SPAN id="Swt5" class="time" begin="1" dur="1">½ÃÀÛ</SPAN>
<SPAN id="Swt3" class="time" dur="1">3</SPAN>
<SPAN id="Swt2" class="time" dur="1">2</SPAN>
<SPAN id="Swt1" class="time" dur="1">1</SPAN>
<SPAN id="Swt0" class="time" dur="1">0</SPAN>
<SPAN id="SwtA" class="time" dur="2">¹ß»ç!</SPAN>
<SPAN id="SwtB" class="time" dur="1.75">¹Ì±¹ÀÎÀÌ ¿ìÁÖ·Î µ¹¾Æ°£´Ù.</SPAN>
<SPAN id="SwtC" class="time" dur="2">µð½ºÄ¿¹ö¸®È£°¡ ¹ß»ç´ë¸¦ ¶°³­´Ù.</SPAN>
<SPAN id="SwtD" class="time" begin="1" dur="3">µð½ºÄ¿¹ö¸®È£.</SPAN>
</T:SEQ>
</TD>
</TR>
<TR>
<TD style="background-color:eeeeee;padding:5;" align=center>
Video Á¦¾î:
<BUTTON id="playBtn" onclick="videoObj.beginElement();">Ç÷¹ÀÌ</BUTTON>
<BUTTON id="pauseBtn" onclick="videoObj.pauseElement();seqObj.endElement();">ÀϽÃÁßÁö</BUTTON>
<BUTTON id="resumeBtn" onclick="videoObj.resumeElement();seqObj.resumeElement();">°è¼Ó</BUTTON>
<BUTTON id="stopBtn" onclick="videoObj.endElement();seqObj.endElement();">Á¾·á</BUTTON>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>