Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 6th, 2004, 08:23 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
stream mp3

i have an mp3 file that is on my server, is there anyway that i can stream that to a user?

Reply With Quote
  #2  
Old February 6th, 2004, 08:32 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by tkarkkainen.

Reason: Not so obvious, but this is client side.

Reply With Quote
  #3  
Old February 6th, 2004, 08:35 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: stream mp3

Theres a application called shoutcast that is excellent for this kind of thing, and a great titorial for it here:

http://hotwired.lycos.com/webmonkey/00/45/index3a_page7.html?tw=multimedia

Reply With Quote
  #4  
Old February 6th, 2004, 08:41 PM
brewthatistrue brewthatistrue is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: CA, USA
Posts: 277 brewthatistrue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 sec
Reputation Power: 2
RE: stream mp3

even easier (but giving you less control):

http://www.developingwebs.net/html/mp3.php
just provide the user with a .m3u file to download, and have the .m3u point to your mp3.
i think they can still download the file directly though. all they need to do is look at the url in the .m3u file.

Reply With Quote
  #5  
Old February 6th, 2004, 08:43 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: stream mp3

Will this not work? Suggestions?

php Code:
Original - php Code
  1.  
  2. header("Content-type: audio/mpeg");
  3. header("Content-Disposition: attachment; filename=2004-02-06");
  4. readfile("2004-02-06.mp3");
  5. unset($files);

Reply With Quote
  #6  
Old February 6th, 2004, 08:50 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: stream mp3

well, that will read the file into a buffer, but you still have to stream it.....

Reply With Quote
  #7  
Old February 7th, 2004, 06:26 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: stream mp3

would that php code up there allready strem the file, or how could you do it that the client can't see the url of the file itself and won't be able to download it?

Reply With Quote
  #8  
Old February 7th, 2004, 06:29 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
RE: RE: stream mp3


Quote:
would that php code up there allready strem the file, or how could you do it that the client can't see the url of the file itself and won't be able to download it?


The client (application, in this case the browser) has to see the URL. So the user will have an access to the URL information through the browser cache.

Reply With Quote
  #9  
Old February 7th, 2004, 08:11 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: stream mp3

yes ok, but now say wanted to let it stream for madiaplayer or realplayer , shoutcast and so on. There the client can't see the url, like all these web radio station or like that shoutcast plugin where you can do your own radio via shoutcast.
now could you do that in some web edition?

Reply With Quote
  #10  
Old February 7th, 2004, 09:37 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: stream mp3

You're always gonna be able to reference a URL, its where the stream comes from.It denotes what buffer file the stream is being pulled from.

Reply With Quote
  #11  
Old February 7th, 2004, 10:09 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: stream mp3

and how do radio stations and things like that do it then? you must be able to do it the same way

Reply With Quote
  #12  
Old February 7th, 2004, 10:14 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: stream mp3

they use a url reference too....Any kind of streming audio can be played back if you know the address....Thats exactly how its done.

Reply With Quote
  #13  
Old February 8th, 2004, 10:36 AM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: stream mp3

ok

Reply With Quote
  #14  
Old February 9th, 2004, 06:39 AM
GPX GPX is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Haifa, Israel
Posts: 10 GPX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: stream mp3

You can always protect files with passwords ...

Reply With Quote
  #15  
Old February 9th, 2004, 08:20 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: stream mp3

but then you couldn'T stream them anymore if they had a password, or could you?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > stream mp3


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 |