Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2001, 03:33 AM
DeepFriedComics DeepFriedComics is offline
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to set up a script (say..."audio.php" for example) that when users visit that page (via a link) their default audio player opens and plays the file (streaming).

Never really messed with audio before, not sure how it works. Anybody have any ideas?
Reply With Quote
  #2  
Old 11-01-2001, 03:43 AM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

javascript not php
Reply With Quote
  #3  
Old 11-01-2001, 05:22 PM
DeepFriedComics DeepFriedComics is offline
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I remember seeing something like this done with php and i'd like to go that route if possible.
Reply With Quote
  #4  
Old 11-01-2001, 07:36 PM
apfeifer apfeifer is offline
 
Join Date: Oct 2001
Location: Sioux Falls, South Dakota, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I'd think you would do this with JavaScript also, if you find the PHP way of doing it please post it here so I can see it. Thanks!

Reply With Quote
  #5  
Old 11-01-2001, 08:11 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um, this has really nothing to do with JavaScript or PHP. Example: JerryBowyer.com (yeah, I built it. What of it? ). Check it out...streaming WMA and RAM files...there's no JavaScript involved, and the PHP is only used to produce the links and manage the audio files. The actual link itself is just a plain old link to the file...the rest, the program (Windows Media Player, or RealPlayer) handles itself.
Reply With Quote
  #6  
Old 11-01-2001, 08:46 PM
apfeifer apfeifer is offline
 
Join Date: Oct 2001
Location: Sioux Falls, South Dakota, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm, I wonder what I was thinking, it's pretty obvious isn't it? Well, seeing my answer was wrong, your best bet would be to do what TWTCommish said. I must have had a blonde moment or something, even though I'm not blonde.

Reply With Quote
  #7  
Old 11-01-2001, 11:26 PM
DeepFriedComics DeepFriedComics is offline
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's exactly what i'm looking for Commish.

Mind enlightening me on the exact process?
Reply With Quote
  #8  
Old 11-02-2001, 12:15 AM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's pretty simple: create the .rm audio file, and upload it wherever you want on your webserver. I'll assume the file is called "myfile.rm", and that it has been uploaded to www.somesite.com/myfile.rm. Then, create a file called "myfile.ram" (not the "a" there in the middle...not just "rm")...enter this into the file with your favorite text editor:

pnm://www.somesite.com/myfile.rm

Then, just link to "myfile.ram" anywhere on your site, and clicking on it should allow it to stream. I dunno if it would work ANYWAY, but I've read that the .ram file with that little "pnm" thing sort of redirects it to the other file. Odd, I know. With .wma files, just upload them and link to them...the streaming should handle itself. At least, it works for me.
Reply With Quote
  #9  
Old 03-10-2007, 11:48 PM
JorgeX JorgeX is offline
 
Join Date: Oct 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TWTCommish View Post
It's pretty simple: create the .rm audio file, and upload it wherever you want on your webserver. I'll assume the file is called "myfile.rm", and that it has been uploaded to www.somesite.com/myfile.rm. Then, create a file called "myfile.ram" (not the "a" there in the middle...not just "rm")...enter this into the file with your favorite text editor:

pnm://www.somesite.com/myfile.rm

Then, just link to "myfile.ram" anywhere on your site, and clicking on it should allow it to stream. I dunno if it would work ANYWAY, but I've read that the .ram file with that little "pnm" thing sort of redirects it to the other file. Odd, I know. With .wma files, just upload them and link to them...the streaming should handle itself. At least, it works for me.

Hi, how can i create theplaylist for my web mp3 fileS?
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04212 seconds
  • Memory Usage 2,237KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete