¹Ýº¹À» Æ÷ÇÔÇÏ¿© ¿¤·¹¸àÆ® ¼¼±×¸àÆ® ½Ã°£À» ÁöÁ¤µÈ ½Ã°£¿¡ ¸ÂÃç ±× ½Ã°£ºÎÅÍ Ç÷¹À̸¦ ½ÃÀÛÇÑ´Ù.
¹Ýȯ°ªÀº ¾ø´Ù.
ÇöÀç È°¼ºÈ°¡ µÇÁö ¾ÊÀº °³Ã¼¿¡¼ ½Ã°£À» ã±â(seek)¸¦ ½ÃµµÇÏ¸é ¿À·ù°¡ ¹ß»ýµÈ´Ù. À̸¦ ¹æÁöÇϱâ À§ÇÏ¿© isActive ¼Ó¼ºÀ» »ç¿ëÇÏ¿© °³Ã¼ÀÇ »óŸ¦ Á¡°ËÇÑ´Ù.
¸ðµç ¸Þµð¾î ŸÀÔ¿¡¼ ½Ã°£ ã±â°¡ Áö¿øµÇ´Â °ÍÀº ¾Æ´Ï°í, Ç÷¹À̾ ½Ã°£ ã±â¸¦ Áö¿øÇÏÁö ¸øÇϸé ÀÌ ¸Þ¼µå´Â ¹«½ÃµÈ´Ù.
°³Ã¼ | script | IE |
---|
ÀÌ ¸Þ¼µå´Â (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡ ´ëÇÑ MicrosoftÀÇ È®ÀåÀÌ´Ù.
¿À·ù¸¦ ¹æÁöÇϱâ À§ÇÏ¿© ¸ÕÀú ¸Þµð¾î°¡ È°¼ºÈ ¾ÈµÇ¾úÀ¸¸é beginElement ¸Þ¼µå·Î È°¼ºÈ ½ÃŲ ÈÄ À¯È¿ÇÑ ½Ã°£ ¹üÀ§ ³»¿¡¼ seekTo ¸Þ¼µå¸¦ È£ÃâÇÏ¿© ¿øÇÏ´Â ½Ã°£À» ã¾Æ Ç÷¹ÀÌÇÑ´Ù.
<HTML xmlns:t= "urn:schemas-microsoft-com:time"> <HEAD> <IMPORT namespace="t" implementation="#default#time2"> <STYLE>.time{behavior:url(#default#time2)}</STYLE> <SCRIPT> function doSeekTime(){ showA.innerHTML=''; if (!oMedia.currTimeState.isActive){ // ¸Þµð¾î °³Ã¼°¡ È°¼º ÁßÀÌ ¾Æ´Ï¸é ´Ù½Ã ½ÃÀÛÇÑ´Ù. oMedia.beginElement(); } if (isFinite(seekInput.value) && seekInput.value <= oMedia.mediaDur && seekInput.value > 0){ // ÀÔ·ÂÇÑ Ã£´Â ½Ã°£ÀÌ À¯È¿ÇÑ ¹üÀ§Àΰ¡¸¦ Á¡°ËÇÏ¿© ã´Â´Ù. oMedia.seekTo(1,seekInput.value); oMedia.pauseElement(); } else{// ¹üÀ§¸¦ ¹þ¾î³µÀ¸¸é ´ÙÀÌ ÀÔ·ÂÀ» ¿äûÇÑ´Ù. showA.innerHTML='À¯È¿ ¹üÀ§´Â 0ÃÊÀÌ»ó ¸Þµð¾î Áö¼Ó½Ã°£(' + oMedia.mediaDur + ')ÃÊ ÀÌÇÏÀ̾î¾ß ÇÑ´Ù.'; seekInput.focus(); } } </SCRIPT> </HEAD> <BODY> ¸Þµð¾î ŸÀ̸Ó: <SPAN id="Timer2" class="time" dur=".01" repeatCount="indefinite" fill="hold" onrepeat="innerText=parseInt(oMedia.currTimeState.activeTime);">0</SPAN><BR> <T:video style="width:175px; height:150px;" id="oMedia" src="../../media/clock.avi" onmediacomplete="oMediaDur.innerText=oMedia.mediaDur;" /><BR> ¸Þµð¾Æ Áö¼Ó: <SPAN id="oMediaDur"></SPAN> ÃÊ<BR> ãÀ» ½Ã°£(seekActiveTime) ÀÔ·Â: <INPUT type="text" value="" name="seekInput" size="3"/> ÃÊ<BR> <BUTTON id="seekBtn" onClick="doSeekTime();">½Ã°£ ã±â</BUTTON> <BUTTON onClick="oMedia.resumeElement();showA.innerHTML='´Ù½Ã °è¼ÓµÊ';">´Ù½Ã °è¼Ó</BUTTON> <BUTTON onClick="oMedia.beginElement();showA.innerHTML=''">´Ù½Ã ½ÃÀÛ</BUTTON> <DIV id=showA></DIV> </BODY> </HTML>