www.webdeveloper.com
Results 1 to 8 of 8

Thread: mp3 streaming

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    7

    mp3 streaming

    Is there a simple way with not much coding to make simple streaming audio on my website..
    to just stream an mp3 track from a directory.. with a play and stop button..

    ??
    /nic

  2. #2
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    Moved to appropriate forum.

  3. #3
    Join Date
    Mar 2005
    Posts
    78
    Hi,

    Unfortunately it's not that simple.
    html browsers were never intended to play audio objects. hence the development of plugins. (flash player, windows media player, real quicktime)

    First you need to decide on what is going to stream the audio.
    Then you can take appropriate steps. such as pick up a mp3player.swf for flash
    or object embed a windows media object etc

    The simple solution (though mac and linux users will hate this) is to use a windows media object embed and link to the .mp3
    simply replace the name of your mp3 in the code


    Code:
    <object ID="MediaPlayer1" width=165 height=48 
    	classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    	codebase="
    	http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
            standby="Loading Microsoft® Windows® Media Player components..." 
            type="application/x-oleobject">
    
      
      <param NAME="AutoStart" VALUE="True">	
      
      <param NAME="FileName" VALUE="1.mp3">
      <param NAME="ShowControls" VALUE="true">
      <param NAME="ShowStatusBar" VALUE="true">
      <embed type="application/x-mplayer2" 
    	pluginspage =" http://www.microsoft.com/Windows/MediaPlayer/"
    	SRC="1.mp3"
    	name="MediaPlayer1"
    	width=165
    	height=46
    	ShowStatusBar=true
    	ShowControls=true>
      </embed>
    here's a link to see it in action...
    http://www.mikechrysler.com/sz/idex.html

  4. #4
    Join Date
    Jan 2006
    Posts
    1

    Question

    Frets,
    Hello, I have a question regarding the streaming audio. How should I set the parameters so the music doesn't autostart and the second track starts automatically after the first?
    Thanks.
    Mike

  5. #5
    Join Date
    Mar 2005
    Posts
    78
    For win media player...

    <param NAME="Autostart" VALUE="false">

  6. #6
    Join Date
    Oct 2006
    Posts
    23
    Hello, I developed a flash version that pulls mp3s form a dir and plays them, I dont mind giving you the files todo it, but I do want credit for creating it.


    If you interested:
    http://onlineskinconsultingusa.com/

    Login:
    > username: tess
    > password: terr

    click on Music and a popup juck box comes up. If you like pm or reply to this message and I'll be more then happy to give you it free of cost (money)
    Gorilla3D Primative Teachings

  7. #7
    Join Date
    Nov 2006
    Posts
    2

    Cool continue playing

    Quote Originally Posted by Frets
    For win media player...

    <param NAME="Autostart" VALUE="false">
    I am looking for a way for the Windows Media Player to automaticly go to and start playing the next mp3 on the play list. No matter which one (.asx or .wpl) I use, the story is the same, it plays one and stops and have to click play again. Am I asking too much from Win Media Player? Should I look for something else to use instead?

  8. #8
    Join Date
    Nov 2006
    Posts
    2
    Ok, this is fine if one wants to only play ONE mp3. However, my problem is that I want the ability to create a playlist for windows media player that it will actually recognize AND play all the mp3 in the list. Currently, it does recognize the play list but only plays the first mp3 and stops, it does not cycle to the next mp3 etc.
    I am a program director at a radio station in Rutherfordton, NC and would like the ability to place several of our Sunday morning shows on the internet with windows media player. I do have it there and running just fine if someone is using winamp or realplayer or even yahoo player. I do want that same ability with windows media player. Any suggestions? The URL to the station website is http://www.wcab59.com/ondemand
    There you will see what I have done and what I want to do with windows media player.

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