Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2004, 07:25 AM
ivan447 ivan447 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Ireland
Posts: 9 ivan447 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 41 sec
Reputation Power: 0
streaming MP3's

hiya need help on how to stream MP3's, i dont have any cash, so no fancy software!! using apache/php. the easiest way is the best way! any suggestions or pointers, thanks

Reply With Quote
  #2  
Old February 18th, 2004, 04:01 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Click here for more information.
 
Join Date: Feb 2002
Location: Finland
Posts: 8,910 jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Weeks 1 Day 11 h 9 m 14 sec
Reputation Power: 1693
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Hi,

You need to have a host that provides this kind of service, not many free / cheap ones do - uses lots of bandwidth.

If you have found a host that provides streaming, then you need to embed your MP3 into your pages -> search these forums, there was a thread within the last couple of weeks with the actual code to do that.. The code below kind of works, but needs tweaked to wrok in all browsers:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
</head>
<body>

<object classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A" width="200" height="70">
<param name="FileName" value="track.mp3" />
<param name="type" value="application/x-mplayer2" />
<param name="PlayCount" value="1" />
<param name="Volume" value="1" />
<param name="ShowControls" value="true" />
<param name="ShowDisplay" value="true" />
<embed type="application/x-mplayer2" playcount= "1" width="70" height="26" filename="track.mp3" volume="1" showcontrols="true" showdisplay="true" src="track.mp3">
</embed> 
</object>

</body>
</html>
HTH
__________________
Cheers,

Jamie

# mdb4u | mobile movie database] | Please help to test and promote
# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.



__________________

Reply With Quote
  #3  
Old February 18th, 2004, 02:28 PM
Executive's Avatar
Executive Executive is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 147 Executive User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I saw some php scripts on hotscripts.com that do that.
__________________
Family Hosting, we treat you like family!
United Web Site Award Givers, is your website worthy of an award?

Reply With Quote
  #4  
Old February 25th, 2004, 05:29 AM
guitarmonkey guitarmonkey is offline
webslinger
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: uk
Posts: 5 guitarmonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to guitarmonkey
Jabba 29 / executive - dont be dumb! what are you on? paying for hosting and scripts????

ivan447 - dont listen to all these people, they dont know what they are on about. you can stream mp3s no problem quickly and easily.

1. Upload you MP3 to your server

2. Open notepad. write the entire url of the mp3: ie: http://www.myserver.com/mp3s/mysong.mp3 (obviously the full real url of your mp3)

3. Do a 'save as' and call it something but add .m3u on the end of it. eg: mysong.m3u

4. Upload this .m3u file to your server too.

5. This acts as a pointer to your mp3 file and the m3u extension tells it to stream. So in your page you just link to the .m3u file. When people click your link it goes to the m3u which auto redirects and streams the MP3 you pointed it to, in the default player of the users operating system. In my case, realplayer.

The beauty of this is that as the URL is contained in the notepad document no-one can see where the MP3s are to download them.

you can use the exact same technique to stream video and audio in realplayer. Your realplayer file is a .rm - so you create a notepad document with the extension .ram and it functions exactly the same. no need for embedding. just pops up in realplayer.

Reply With Quote
  #5  
Old February 26th, 2004, 10:34 PM
toots82 toots82 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 90 toots82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 7 m 17 sec
Reputation Power: 6
Thumbs up Cool!

Wow... cool!

So does that work for AVI files too? I want something to point to my AVI files instead of download then listen...

Thanks...

Reply With Quote
  #6  
Old February 28th, 2004, 01:38 AM
RockNRollPig RockNRollPig is offline
So...I'm like...yeah
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 11 RockNRollPig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
Quote:
Originally Posted by guitarmonkey
Jabba 29 / executive - dont be dumb! what are you on? paying for hosting and scripts????

What? You say "paying for hosting?" like you get free hosting with a lot of bandwidth. Looks like the only one "on" something is you.

Reply With Quote
  #7  
Old July 13th, 2004, 02:46 PM
braalewi braalewi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 braalewi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by guitarmonkey
Jabba 29 / executive - dont be dumb! what are you on? paying for hosting and scripts????

ivan447 - dont listen to all these people, they dont know what they are on about. you can stream mp3s no problem quickly and easily.

1. Upload you MP3 to your server

2. Open notepad. write the entire url of the mp3: ie: http://www.myserver.com/mp3s/mysong.mp3 (obviously the full real url of your mp3)

3. Do a 'save as' and call it something but add .m3u on the end of it. eg: mysong.m3u

4. Upload this .m3u file to your server too.

5. This acts as a pointer to your mp3 file and the m3u extension tells it to stream. So in your page you just link to the .m3u file. When people click your link it goes to the m3u which auto redirects and streams the MP3 you pointed it to, in the default player of the users operating system. In my case, realplayer.

The beauty of this is that as the URL is contained in the notepad document no-one can see where the MP3s are to download them.

you can use the exact same technique to stream video and audio in realplayer. Your realplayer file is a .rm - so you create a notepad document with the extension .ram and it functions exactly the same. no need for embedding. just pops up in realplayer.


I've gotten a site I am working on to work this way on our test server and our actual servers, but does this work for any windows server as long as the client machine has something to play the file with?

My next question is does anyone know any place out there that provides plenty of storage and bandwidth at around $50 a month for this?

Reply With Quote
  #8  
Old July 15th, 2004, 07:51 PM
number00032 number00032 is offline
boytoy
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 72 number00032 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to number00032 Send a message via MSN to number00032
That is great, i really didnt know it would stream automatically...nice work. Lets not insult people though.

@ braalewi: i've emailed you with a hosting suggestion!

Reply With Quote
  #9  
Old July 19th, 2004, 09:58 AM
sjh6 sjh6 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 4 sjh6 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Guitarmonkey's suggestion was really helpful. I created a link to an mpu file and it works great. Then I tried putting the link to the mpu file in a "goto link" action command (I'm using Adobe GoLive) in the head and the mp3 automatically plays when the page loads in IE but not in Netscape.

Any suggestions how I can get it to play when the page is loaded in Netscape?

Thanks.

Reply With Quote
  #10  
Old December 3rd, 2004, 09:11 AM
Moonshield Moonshield is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 Moonshield User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by jabba_29
Hi,

You need to have a host that provides this kind of service, not many free / cheap ones do - uses lots of bandwidth.

If you have found a host that provides streaming, then you need to embed your MP3 into your pages -> search these forums, there was a thread within the last couple of weeks with the actual code to do that.. The code below kind of works, but needs tweaked to wrok in all browsers:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
</head>
<body>

<object classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A" width="200" height="70">
<param name="FileName" value="track.mp3" />
<param name="type" value="application/x-mplayer2" />
<param name="PlayCount" value="1" />
<param name="Volume" value="1" />
<param name="ShowControls" value="true" />
<param name="ShowDisplay" value="true" />
<embed type="application/x-mplayer2" playcount= "1" width="70" height="26" filename="track.mp3" volume="1" showcontrols="true" showdisplay="true" src="track.mp3">
</embed> 
</object>

</body>
</html>
HTH


ok... is there by any chance a way to hide the file's source so no one can download the file from my website?

Reply With Quote
  #11  
Old December 6th, 2004, 07:26 AM
Spudhead Spudhead is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 148 Spudhead User rank is Corporal (100 - 500 Reputation Level)Spudhead User rank is Corporal (100 - 500 Reputation Level)Spudhead User rank is Corporal (100 - 500 Reputation Level)Spudhead User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 51 m 3 sec
Reputation Power: 7
sjh6 - have you checked in your Netscape preferences what it thinks it should open .m3u files with?

Moonshield - not really. But why would you try to stop people downloading a file that you're creating a link to? If you don't want people to download it, don't put it on the interweb.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > streaming MP3's


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |