mracek: melodie

priklad: playlist Object
! Zvuky funguji dobre ve Windows, netestoval jsem Linux.
! u Win media player pluginu je nutne zadavat relativni cestu s "./" "./soubor.mid" (NE "soubor.mid"), pak nechce nektere prehravat
! u Win media player v IE nefunguje cesta s "../"
Zapis zvuku do www:

    1. <BGSOUND src="jmeno">
    2. <EMBED src="jmeno" autostart="false" mastersound></EMBED>
       <noembed>neni prehravac midi zvuku</noembed>
       IE:		    type="audio/midi"
       MS media player: type="application/x-mplayer2"	 pluginspage="http://www.microsoft.com/windows/mediaplayer/"
       AppleQuickTime:  type="video/quicktime"	 	 pluginspage="http://www.apple.com/quicktime/download/"
       RealPlayer:	    type="audio/x-pn-realaudio-plugin"	 pluginspage="http://www.real.com/player/
       ! "MS media player" neumi prehrat vsechny typy midu
       ! Opera funguje, pokud ma u EMBED type=""
       ! Opera melodii nelze prerusit, ani smazanim tagu
       ! Firefox ve windows prehrava WMA bez "type"
       ! Firefox ve windows "MS media player" funguje, pokud ma u EMBED type="application/x-mplayer2"
       ! Firefox AppleQuickTime http://forums.mozillazine.org/viewtopic.php?t=206210#qtsetup
    3. activeX OBJECT
       <OBJECT data="jmeno" autostart="false"></OBJECT>
       <OBJECT classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
       <param name="src" value="jmeno.mid">
       </object>
       Flash:	   type="application/x-shockwave-flash"	 pluginspage="http://www.macromedia.com/go/getflashplayer"
       AppleQiockTime: type="audio/x-mpegurl"		 pluginspage="http://www.apple.com/quicktime/download/" src="playlist.m3u"

    4  META REFRESH
    5  <IMG dynsrc="http://www.name.com/mozart.mp3" border="0" />
    6  Java Applet MS Java mediaplayer
    7  <A HREF="jmeno.mid">jmeno.mid</A>
       funguje treba v Opere a neotvira dalsi prehravac

    Do EMBED/OBJECT funguje pouzit WinAmpovy playlist "soubor.m3u" misto nazvu pisnicky.

BGSOUND Ovladany JS - prepisovani src (IE, Opera, FF+extension:bgsound to embed tag)

    <script type="text/javascript">
    var cesta='midifiles\/';
    function hraj(nazev) {var s = document.getElementById("musicplay").src=cesta+nazev+'.mid';}
    </script>

    	<bgsound src="notesmid/jinglebells.mid" id="musicplay" loop="0" volume="100">
    	<a href="javascript:hraj('jinglebells')"></a>

    EMBED WMA
    Ve windows, je mi to zahadou, ale funguje WMA ve vsech prohlizecich bez type=".."

    EMBED Ovladany JS
    prepisovani spanu, SRC se da zmenit pouze pri nacitani dokumentu

    <script type="text/javascript">
    function hraj(nazev) {var t,s,z;
    	var z = document.getElementById("musicblock");
    	var s = document.getElementById("musicplay");
    	s.Stop();
    	t='<EMBED id="musicplay" src="' + nazev+'.mid';
    	t+='" type="audio/midi" autostart="true" mastersound hidden="true"></EMBED><NOEMBED>Error: Nelze spustit prehravac midi!</NOEMBED>';
    	z.innerHTML=text;}
    </script>

    	<span id="musicblock">
    	<EMBED id="musicplay" src="jinglebells.mid" type="audio/midi" autostart="true" mastersound hidden="true"></EMBED>
    	<NOEMBED>Error: Nelze spustit prehravac midi!</NOEMBED>
    	</span>
    	<a href="javascript:hraj('jinglebells')"></a>

    META REFRESH
    zvuk se pusti po zobrazeni stranky, pokud jej dokaze spustit nejaka aplikace.
    Melo by udajne fungovat vsude.

    <html>
    <head><meta http-equiv="refresh" content="2; url=pisnicka.mid"></head>
    <body></body>
    </html>

...z jedne francouzske stranky...

    OBJECT QuickTime mp3

    <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="160" HEIGHT="16" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
    <PARAM name="SRC" VALUE="http://data.over-blog.com/lib/7/7/10877/files/musique/06---Imagination---Body-Talk.mp3">
    <PARAM name="AUTOPLAY" VALUE="false">
    <PARAM name="LOOP" VALUE="false">
    <PARAM name="CONTROLLER" VALUE="true">
    <EMBED type="audio/mpegl" src="http://data.over-blog.com/lib/7/7/10877/files/musique/06---Imagination---Body-Talk.mp3" autoplay="false" width="160px" height="16px" loop="false" controller="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
    </EMBED></OBJECT>

    OBJECT Windows media player mp3

    <OBJECT width=175 height=30 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Chargement de Microsoft Windows Media Player..." type="application/x-oleobject">
    <PARAM NAME="FileName" VALUE="http://data.over-blog.com/lib/8/4/11548/files/Mozart-la-flute-enchantee.mp3">
    <PARAM NAME="animationatStart" VALUE="true">
    <PARAM NAME="transparentatStart" VALUE="true">
    <PARAM NAME="autoStart" VALUE="false">
    <PARAM NAME="showControls" VALUE="true">
    <PARAM NAME="autoSize" VALUE="0">
    <EMBED type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
    SRC="http://data.over-blog.com/lib/8/4/11548/files/Mozart-la-flute-enchantee.mp3" width="175" height="30" AutoStart="false" autosize="0" transparentatStart="true" animationatStart="true" showControls="true">
    </EMBED>

    OBJECT RealPlayer mp3

    <OBJECT CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="175" HEIGHT="30">
    <PARAM NAME="CONTROLS" VALUE="ControlPanel">
    <PARAM NAME="CONSOLE" VALUE="Clip1">
    <PARAM NAME="AUTOSTART" VALUE="false">
    <PARAM NAME="nologo" VALUE="true">
    <PARAM NAME="NOJAVA" VALUE="true">
    <PARAM NAME="SRC" VALUE="http://data.over-blog.com/lib/8/4/11548/files/Mozart-la-flute-enchantee.mp3">
    <PARAM NAME="LOOP" VALUE="false">
    <EMBED SRC="http://data.over-blog.com/lib/8/4/11548/files/Mozart-la-flute-enchantee.mp3" WIDTH="175" HEIGHT="30"
    TYPE="audio/x-pn-realaudio-plugin"
    NOLOGO="true" NOJAVA="true" CONTROLS="ControlPanel" CONSOLE="Clip1"
    AUTOSTART="false" LOOP="false"></EMBED>
    </OBJECT>

    OBJECT Ovladany JS (IE)

    <script type="text/javascript">
    function hraj(nazev) {
    	var s = document.getElementById("musicplay");
    	var z = document.getElementById("musicblock");
    	s.Stop();
    	text='<OBJECT id="musicplay" data="' + nazev;
    	text+='" type="audio/midi" autostart="true" style=display:"none";></OBJECT>';
    	z.innerHTML=text;}
    </script>

    	<span id="musicblock">
    	<OBJECT id="musicplay" data="Download/notesmid/airwolf.mid" type="audio/midi" autostart="true" style=display:"none";></OBJECT>
    	</span>

OBJECT - jiny priklad, activeX plug-in, nahravani Playlistu.asx

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs" dir="ltr">
    <head>
    <meta http-equiv="Content-script-type" content="text/javascript" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    </head>
    <h2>Player</h2>

    <object id="MediaPlayer" name="MediaPlayer"
      classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
      codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
      width="320" height="69"
      standby="Nahravaji se soucasti Microsoft Windows Media..."
      type="application/x-oleobject">
      <param name="filename" value="playlist.asx" />
      <param name="autosize" value="1" />
      <param name="autostart" value="1" />
      <param name="animationatstart" value="1" />
      <param name="displaysize" value="1" />
      <param name="showcontrols" value="1" />
      <param name="showaudiocontrols" value="1" />
      <param name="showdisplay" value="0" />

      <param name="showgotobar" value="0" />
      <param name="showpositioncontrols" value="1" />
      <param name="showstatusbar" value="1" />
      <param name="showtracker" value="1" />
      <param name="transparentatstart" value="0" />
      <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
        src="playlist.asx" filename="playlist.asx"
        name="MediaPlayer" id="MediaPlayer"
        width="320" height="69"
        autosize="0"
        autostart="1"
        animationatstart="1"
        displaysize="1"
        showcontrols="1"
        showaudiocontrols="1"
        showdisplay="0"
        showgotobar="0"
        showpositioncontrols="1"
        showstatusbar="1"
        showtracker="1"
        transparentatstart="0">
      </embed>
    </object>
    <noembed>
    <a href="sound.mid" target="_blank">St hnout z znam</a><br />

    </noembed>
    </body>
    </html>

BGSOUND: Src="jmeno" (axelf.mid) Loop="false"/true/integer (opakovat ano/ne/ztisovat) Volume="50"(1-100)
MS popis BgSound
EMBED: Src="jmeno" AutoStart="false"/true Loop="false" Controls="console"/smallconsole/playbutton/pausebutton/stopbutton/volumelever StartTime=00:10 (minuty:sekundy) EndTime=00:20 Volume="30" mastersound Hidden="false"/true + vzhled+JS (name, align, height,...)
MS popis Embed
OBJECT: Data="" style=display:"none"; ClassID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" + vzhled+JS
MS popis Object