www.webdeveloper.com
Results 1 to 3 of 3

Thread: Streamable mp3s

  1. #1
    Join Date
    Nov 2002
    Posts
    2,632

    Streamable mp3s

    How do I get mp3 samples to be streamable instead of a person having to do a complete download to listen to the sample?

  2. #2
    Join Date
    Nov 2002
    Location
    London UK
    Posts
    154
    Firstly (as you probably know) you have to convert your mp3 into a streamable file.

    The most common one is RealAudio by real.com, I believe you can download a demo of RealProducer which allows you to covert the mp3 file into the streamed realaudio file. Another popular streaming tool is Windows Media Encoder by Microsoft. I remember that RealProducer includes a set of wizards to help you convert the file into its streaming format. I can't remember if Windows Media Encoder has one, but being Microsoft it probably does.

    Now if you use RealProducer it will covert your mp3 file into a .rm file (if I remember correctly, it has been a while). Next you open up a text file (try Notepad) and copy into it the url of the .rm file, such as:

    http://www.mydomain.com/mymusicfile.rm

    You then save this file with a .ram extension. You then embed it as you would any other media file, by using either the embed or object tag. Obviously the source being the .ram file.

    If you choose Windows Media Encoder then that will convert you mp3 file into a .wma file. Now you open a text editor again (like Notepad) and type the code below into it.

    <asx version="3">
    <entry >
    <ref href="yourfilename.wma" />
    </entry>
    </asx>

    Now you save this with a .asx extension. You then embed the .asx file as you would any other media file, i.e. using object or embed.

    Well that is as much as I can remember with my rusty knowledge. I hope it helps!!!

  3. #3
    Join Date
    Nov 2002
    Posts
    15
    Another way is to create an .m3u file that is text & inside have it point to the file you want to stream
    then all you need to do is provide a link to the m3u file
    ie

    m3ufile contents:

    http://mydomain.com/sample.mp3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles