¹®¼¿¡¼ ¿¬ÁÖ Ç׸ñ playItem °³Ã¼µéÀÇ ¹è¿º¯¼öÀÎ Ä÷º¼ÇÀ» ÂüÁ¶ÇÑ´Ù,
MP3(MPEG-Layer 3)¿Í °°Àº ÀϺΠ¸Þµð¾î ÆÄÀÏÀº ¿©·Á°³ÀÇ °³º° ¸Þµð¾Æ ÆÄÀÏÀ» Æ÷ÇÔÇÏ´Â °ÍÀÌ ÀÖ´Ù. ÀÌ °³Ã¼·Î ÀÌ¿Í°°Àº ÆÄÀÏÀÇ ¿¬ÁÖ ¸ñ·Ï Ä÷º¼Ç¿¡ Á¢¼ÓÇÒ ¼ö ÀÖ´Ù.
ÀÌ playList Ä÷º¼ÇÀº ¸ðü ½Ã°£ ¿¤·¹¸àÆ®¿¡¼ È°¼ºÈµÈ µ¿¾È¸¸ »ç¿ëÀÌ °¡´ÉÇÏ°í ¸ðü ½Ã°£ÀÌ Á¾·áµÇ¸é ÁßÁöµÇ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ Ä÷º¼ÇÀº (¿µ¹®) SMIL 2.0(Synchronized Multimedia Integration Language)¿¡ È®ÀåÇÑ °ÍÀÌ´Ù.
HTML+time¼³¸íÀ» À§ÇÑ ¿¹Á¦
Á¦°øµÇ´Â Á¤º¸´Â ÆÄÀÏ ÀÛ¼º½Ã Á¦°øÇÑ °ÍÀÌ ´ëºÎºÐÀÌ´Ù.
<HTML xmlns:t="urn:schemas-microsoft-com:time">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<IMPORT namespace="t" implementation="#default#time2">
<T:media id="mediaObj" src="../../media/bannerSample.asx"
onmediacomplete="updateFields();updateBtns();" begin="document.onload{+1)"/>
<B>timer:</B><SPAN id="Timer1" class="time" dur=".01" repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(document.body.currTimeState.activeTime);">0</SPAN><BR>
<SPAN id="title1">Title:</SPAN><BR>
<SPAN id="author1">Author:</SPAN><BR>
<SPAN id="abstract1">Abstract:</SPAN><BR>
<SPAN id="copyright1">Copyright</SPAN><BR><BR>
<BUTTON id="b0" onclick="mediaObj.beginElement();updateFields();updateBtns();">Start</BUTTON>
<BUTTON id="b1" onclick="mediaObj.playList.nextTrack();updateFields();">Next Track</BUTTON>
<BUTTON id="b2" onclick="mediaObj.playList.prevTrack();updateFields();">Previous Track</BUTTON>
<BUTTON id="b3" onclick="mediaObj.endElement();emptyFields();updateBtns();">Stop</BUTTON>
<SCRIPT>
function updateBtns(){
if(mediaObj.currTimeState.isActive){
b0.disabled=true;
b1.disabled=false;
b2.disabled=false;
b3.disabled=false;
showInformation(); // ¼Ó¼ºµîÀÇ Ç¥½Ã Á¤º¸ÀÇ ¾÷µ¥ÀÌÆ®
}else{
b0.disabled=false;
b1.disabled=true;
b2.disabled=true;
b3.disabled=true;
}
oObj=mediaObj.playList;
}
function updateFields(){
title1.innerText='Title: '+mediaObj.playList.activeTrack.title;
author1.innerText='Author: '+mediaObj.playList.activeTrack.author;
abstract1.innerText='Abstract: '+mediaObj.playList.activeTrack.abstract;
copyright1.innerText='Copyright: '+mediaObj.playList.activeTrack.copyright;
}
function emptyFields(){
title1.innerText='Title: ';
author1.innerText='Author: ';
abstract1.innerText='Abstract: ';
copyright1.innerText='Copyright: ';
}
document.onload=updateBtns();
</SCRIPT>