incorporating sounds into C# web aplications

Discussion in 'Visual Studio' started by villagecirc, Oct 10, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I've recently been asked to develop a web aplication for a local band and they insist on haveing one of their tunes play on their home page when it is loaded up. I have incorporated sounds in to window aplications but have not been able to do the same with my aspx web pages. I've combed the internet to find a solution to incorporating sound in to web aplications and came up with some various solutions that I am going to try. But if anyone has a heads up way to do this please let me know even if I have to do it through scripting whatever if anyone has anything that will help me to incorporate sound in to my web aplication I would greatly apreciate it.

    Matthew H. Paulson
    [email protected]
    http://webpages.charter.net/bctrotzer/
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    What is the sound file format?

    It is relatively simple to incorporate, say, real media file to a webpage.



    quote:Originally posted by villagecirc

    I've recently been asked to develop a web aplication for a local band and they insist on haveing one of their tunes play on their home page when it is loaded up. I have incorporated sounds in to window aplications but have not been able to do the same with my aspx web pages. I've combed the internet to find a solution to incorporating sound in to web aplications and came up with some various solutions that I am going to try. But if anyone has a heads up way to do this please let me know even if I have to do it through scripting whatever if anyone has anything that will help me to incorporate sound in to my web aplication I would greatly apreciate it.

    Matthew H. Paulson
    [email protected]
    http://webpages.charter.net/bctrotzer/
    </blockquote id="quote"></font id="quote">
     
  3. You can use either of these two methods:

    This works in most browsers version 3 and higher. Place this in your <head> section:
    <SCRIPT LANGUAGE = "JavaScript">
    <!-- Hide from old browsers
    function PlaySound(){
    window.location = "yoursoundfile.mid"
    }
    // -->
    </SCRIPT>

    And this in your tag:


    This works only for Internet Explorer (if you want to leave out the other browsers) in your <head> section:


    Hope this helps!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page