Jump to content

Embeding a media player for streaming audio?


conradin

Recommended Posts

Hi all,Forgive me if this is the worng place for this.I have a webserver running a stream of audio files in a folder on my server on port 8080I can access the streaming audio using a media player like vlc. The server has http, and php.What I want to do is have a visual player object, where if you visited my site you could listen into my stream by clicking on the embeded media player. I Tried the examples, from http://www.w3schools...html_sounds.aspbut I dont know how to use the code to specify the ip and port where I am streaming from.

<embed height="100" width="100" src="130.111.192.142:8080" /><object height="100" width="100" data="130.111.192.142:8080"></object>

Things like that, just dont work. What am i doing wrong? How can I embed a way to play the audio I am already streaming on my server?

  • Like 1
Link to comment
Share on other sites

For one, your URLs need to start with "http" or another protocol. If a URL doesn't have a protocol it's considered a relative URL. You also need a filename to play instead of just an IP address and port. If you want to use a Flash-based player check here for examples: http://www.webdesignbooth.com/10-easy-to-implement-flash-based-mp3-players-for-your-website/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...