Archive for June 2007
Menambahkan file audio dalam web
Posted June 16, 2007
on:Berhubung susah nulis pake bahasa Inggris terus, akhirnya aku putuskan nulis pake bahasa Indonesia juga 😀 Kemaren abis dapet tugas suruh bikin web yang bisa njalanin file audio didalamnya. Setelah googling dan tanya di forum akhirnya dapet beberapa alternatif :
1.Menggunakan Javascript sederhana, kita cukup menuliskan self.location=”nama_file_audio”.
2. Menggunakan aplikasi flash, yang diload lewat javascript. Salah satu contohnya adalah soundmanager2. Anda bisa mendownload serta melihat contohnya di http://http://www.schillmania.com/projects/soundmanager2/.
Dari dua contoh diatas saya lebih suka menggunakan plugin – plugin dari beberapa player yang sering digunakan oleh kita semua. Berikut contoh penggunaannya :
QuickTime Player, untuk menjalankan player in, kita tinggal cukup menuliskan kode – kode sebagai berikut :
<object classid=”clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B” codebase=”http://www.apple.com/qtactivex/qtplugin.cab” height=”16″ width=”250″>
<param name=”src” value=”your-file.mid”>
<param name=”autoplay” value=”true”>
<param name=”controller” value=”true”>
<embed height=”16″ width=”250″ src=”your-file.mid” pluginspage=”http://www.apple.com/quicktime/download/” type=”video/quicktime” controller=”true” autoplay=”true”>
</object>
Windows Player , kita tinggal menuliskan kode sebagai berikut :
<TABLE BORDER=”3″ CELLSPACING=”0″ CELLPADDING=”0″ BORDERCOLOR=”#99CCFF” BORDERCOLORLIGHT=”#DBEDFF” BORDERCOLORDARK=”#5B7997″><tr><td>
<object id=”MediaPlayer1″ width=”300″ height=”45″ classid=”CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95″
codebase=”http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902″
standby=”Loading Microsoft Windows Media Player…” type=”application/x-oleobject”>
<param name=”FileName” value=”your-file.mid”>
<param name=”animationatStart” value=”false”>
<param name=”transparentatStart” value=”true”>
<param name=”autoStart” value=”true”>
<param name=”showControls” value=”true”>
<param name=”Volume” value=”-100″>
<embed type=”application/x-mplayer2″ pluginspage=”http://www.microsoft.com/Windows/MediaPlayer/” Name=”MediaPlayer” src=”your-file.mid” AutoStart=”true” ShowStatusBar=”1″ volume=”-1″ HEIGHT=”50″ WIDTH=”300″></embed></object>
</td></tr></table>
Real Player, untuk menggunakannya kita cukup menuliskan kode program sebagai berikut :
<OBJECT ID=RVOCX CLASSID=”clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA” WIDTH=”350″ HEIGHT=”36″>
<PARAM NAME=”SRC” VALUE=”your-file.mp3″>
<PARAM NAME=”CONTROLS” VALUE=”ControlPanel”>
<PARAM NAME=”CONSOLE” VALUE=”one”>
<EMBED src=”your-file.mid” WIDTH=”350″ HEIGHT=”36″ NOJAVA=”true” CONTROLS=”ControlPanel” CONSOLE=”one”>
</OBJECT>
Sebenarnya masih banyak lagi cara untuk memunculkan audio dari sebuah file dalam web , kita bisa menggunakan aplikasi *.swf (flash) serta aplikasi2 yang lain. Hanya saja karena ini berada di internet, dimana siapa saja bisa mengaksesnya menggunakan tipe komputer yang beragam mulai dari Pentium II hingga MacBook maka perlu kita pikirkan juga plugin – plugin yang kira2 kompatibel untuk semuanya.
Nah, saya hanya bisa mengantarkan anda sampai disini mengenai mana yang anda sukai itu semua terserah pilihan anda 🙂
Last to Know
Posted June 9, 2007
on:Finally, after googling in some websites I can get a lyrics for Nidji’s new demo song “Last to Know” 😀 and here is the lyrics :
every single time i see you in the street as you walk by
the shuffle in your feet as if to say you’d rather die
then live so far from home
i wonder is that why you so alone
and if you found a place to call your own then you’ll be fine
and you tell me that something could about to happen soon
and meanwhile you just wait inside your room
till you find its odd
but you are not as strong as you once thought
and even if you run you might get caught
so you won’t go and you’ll be the last to know
every single time i see you in the street as you walk by
the shuffle in your feet as if to say you’d rather die
then live so far from home
i wonder is that why you so alone
and if you found a place to call your own then you’ll be fine
and you tell me that something could about to happen soon
and meanwhile you just wait inside your room
till you find its odd
but you are not as strong as you once thought
and even if you run you might get caught
so you won’t go and you’ll be the last to know
and even you run you might get caught
so you won’t go and you’ll be the last to know
this melody in this song is unusuall and that makes this song nice :))