javascriptjqueryhtmlmedia-playerasx

How to properly embedd audio stream into a web page, and set desired volume level?


How to properly embedd asx audio stream into a web page, and set desired volume level? I want set background music, the player should be hidden on web page. I tried sample code below, it works, but I can no set volume level - it always play at maximal volume. p.s. asx stream play without autostart parameter, too.

<embed src="http://top.tk/wma/audiostream.asx" width="0" height="0" autostart="true">

Solution

  • Ok , I find solution myself.

    <object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_js.swf" width="1" height="1">
        <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_js.swf" />
        <param name="AllowScriptAccess" value="always" />
        <param name="FlashVars" value="mp3=http%3A//mysite.com/audio/file.mp3&amp;autoplay=1&amp;volume=30" />
    </object>