¿¤·¹¸àÆ®¿¡¼­ Ž»ö(seek) ÀÛ¾÷ÀÌ ¼öÇàµÇ¸é ¹ß»ýÇÑ´Ù.


À̺¥Æ® ¼Ó¼º
object.onseek=handler JScript ¸¸-
object.onseek=GetRef("handler") VBScript 5.0-
ÀζóÀÎ HTML <ELEMENT onseek="handler"> ¸ðµç Ç÷§Æ®Æû
¸í¸íµÈ ½ºÅ©¸³Æ® <SCRIPT for=object event=onseek> Explorer-
À̺¥Æ® Ư¼º
Bubbles ¾øÀ½
Ãë¼Ò ºÒ°¡
¹ß»ý ¿øÀÎ ºê¶ó¿ìÀú¿¡ HTML+timeÀÇ ¿µÇâÀ» ¹Þ´Â ¸Þµð¾î ÆÄÀÏÀ» Æ÷ÇÔÇÏ´Â ¹®¼­À» ¿­¸é ¹ß»ýÇÑ´Ù. seekTo, seekToFrame ȤÀº seekActiveTime¿Í °°Àº Ž»ö ¸Þ¼­µå¸¦ È£ÃâÇÑ´Ù.
µðÆúÆ® ÀÛ¿ë ¿¬°üµÈ À̺¥Æ®Ã³¸®ÀÚ¸¦ È£ÃâÇÑ´Ù.

srcElement À̺¥Æ®°¡ ¹ß»ýÇÑ °³Ã¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
type À̺¥Æ® °³Ã¼·ÎºÎÅÍÀÇ À̺¥Æ®ÀÇ À̸§(À̺¥Æ®ÀÇ Á¾·ù)¸¦ ¼³Á¤Çϰųª ¹ÝȯÇÑ´Ù.
Àû¿ë
°³Ã¼scriptHTMLIE
ÂüÁ¶
HTML+time

¿µ¹® SMIL(Synchronized Multimedia Integration Language) ±Ô°ÝÀÇ È®ÀåÀÌ´Ù.


À̺¥Æ® ¿¹Á¦

¸Þµð¾î ŸÀÌ¸Ó : 0
ÇöÀç ÇÁ·¹ÀÓ #: /505



¹æ½Ä ¼±Åà :
½Ã°£°³Ã¼¿¡¼­ seekTo Ž»ö : ÃÊ
À¯È¿ ¼öÄ¡ (0 ~ 33)¸¦ ÀÔ·ÂÇ϶ó.

¸Þµð¾î °³Ã¼¿¡¼­ seekTo, seekToFrame ȤÀº seekActiveTime ¸Þ¼­µå°¡ È£ÃâµÇ¸é onseek À̺¥Æ®°¡ ¹ß»ýµÈ´Ù.
½Ã°£ÀÌ È°¼ºÈ­°¡ ¾ÈµÇ¾úÀ¸¸é beginElement ¸Þ¼­µå·Î È°¼ºÈ­ ½ÃŲ´Ù.

<HTML xmlns:t= "urn:schemas-microsoft-com:time">
<HEAD>
<IMPORT namespace="t" implementation="#default#time2">
<STYLE>.time{behavior:url(#default#time2)}</STYLE>
<SCRIPT>
var maxlength=97.2639306;
function doSeek(){
  if (!oMedia.currTimeState.isActive) oMedia.beginElement();
  if (isFinite(seekInput.value) && seekInput.value> 0 && seekInput.value < maxlength){
    switch(oMethod.options.selectedIndex){
      case 0: oMedia.seekTo(1, seekInput.value);
        break;
      case 1: oMedia.seekActiveTime(seekInput.value);
        break;
      case 2: oMedia.seekToFrame(seekInput.value);
        break;
    }
    oMedia.pauseElement();
  }
}

function doResume(){
  oMedia.resumeElement();
}

function doDisplay(){
  switch(oMethod.options.selectedIndex){
    case 0:
      seektype.innerText='seekTo';
      unit.innerText=' ÃÊ';
      maxlength=oMedia.mediaDur;
      break;
    case 1:
      seektype.innerText='seekActiveTime';
      unit.innerText=' ÃÊ';
      maxlength=oMedia.mediaDur;
      break;
    case 2:
      seektype.innerText='seekToFrame';
      unit.innerText=' ÇÁ·¹ÀÓ';
      maxlength=29195;
      break;
  }
  showA.innerText='À¯È¿ ¼öÄ¡ (0 ~ ' + maxlength + ')¸¦ ÀÔ·ÂÇ϶ó.';
  seekInput.focus();
}
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
¸Þµð¾î ŸÀÌ¸Ó : <SPAN id="timer1" class="time" dur=".01" repeatCount="indefinite" fill="hold"
  onrepeat="innerText=parseInt(oMedia.currTimeState.activeTime);">0</SPAN><BR>
ÇöÀç ÇÁ·¹ÀÓ #: <SPAN id="timer2" class="time" dur="0.01" repeatCount="indefinite" fill="hold"
  onrepeat="innerHTML=oMedia.currentFrame;"></SPAN>/505<BR><BR>
<T:video  id="oMedia" onseek="doResume();" style="width:175px; height:150px;"
  src="../../media/AVITest.avi"/><BR><BR>
¹æ½Ä ¼±Åà : <SELECT name="oMethod" onChange="doDisplay()">
<OPTION value="seekTo" selected>seekTo</OPTION>
<OPTION value="seekActiveTime">seekActiveTime</OPTION>
<OPTION value="seekToFrame">seekToFrame</OPTION>
</SELECT><BR>
½Ã°£°³Ã¼¿¡¼­ <SPAN id=seektype>seekTo</SPAN> Ž»ö :
<INPUT type="text" name="seekInput" value="20" size="4"/><SPAN id=unit>ÃÊ</SPAN>
<DIV id=showA>À¯È¿ ¼öÄ¡ (0 ~ 33)¸¦ ÀÔ·ÂÇ϶ó.</DIV>
<BUTTON id="seekBtn" onclick="doSeek();">½Ã°£ Ž»ö</BUTTON>
<BUTTON id="resumeBtn" onclick="oMedia.resumeElement();">°è¼Ó ÁøÇà</BUTTON>
<BUTTON id="startBtn" onclick="oMedia.beginElement()">´Ù½Ã ½ÃÀÛ</BUTTON>
</CENTER>
</BODY>
</HTML>