Please help me on this..I have the following code to play mp3 file in .net.Its running fine in IE but not in firefox I cannot control the volume of the player in the embed tag.Is there any solution for it???

<script type="text/javascript">
        function updateVideo(sender) {
            var browserName = navigator.appName;
            var obj = document.getElementById("VIDEO");
            if (navigator.userAgent.indexOf("IE") > -1)

            {
                obj.Settings.Volume = sender.value;
            }
            else
            {
                document.sound.settings.volume = sender.value;
                
            }
        }       
    </script>


<object id="VIDEO" width="50" height="50" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
            type="application/x-oleobject">
            <param name="URL" value="<%=Path %>" />
            <param name="SendPlayStateChangeEvents" value="True" />
            <param name="AutoStart" value="True" />
            <param name="uiMode" value="invisible" />
            <param name="PlayCount" value="9999" />
            <param name="volume" value="" />
            <embed type="application/x-mplayer2" width="50"  height="50"        src="<%=Path%>"      classid="clsid:6BF52A52-394A11d3B153-00C04F79FAA6"
                 enablejavascript="true" name="sound" id="sound" autostart="true"></embed>

</object>

I would recommend you read this page regarding media player properties.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.