Re: RealAudio .ram files

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31517
interpreted = N
texte = I could not get reliable results using Webcat to serve Real Audio metafiles because of a bug in Webcatalog. The bug is that when you set a MIME header with Webcatalog, instead of replacing a duplicate name:value pair, it just appends a new name:value pair to the list. So the header for a .ram file will look something like:HTTP/1.1 200 OK Content-type: text/html Content-Type: audio/x-pn-realaudioThis is using WebStar as the server. I don't know how it is handled on other platforms.This is not the desired behavior of SetMIMEHeader and I have asked that the issue be addressed in 4.0. I haven't heard a response to that request, however. I haven't tried this since the latest wave of RealPlayer was released, so it's worth some investigation as to whether the latest version chooses the first or second declaration in the header as the MIME type.The following method works like a champ at http://www.voiceoftheinternet.com/ (click on the Real Jukebox link):I use webcatalog to [writefile] a Real Audio metafile, then [redirect] to it. The only strange glitch to this method is Explorer (on Mac, anyway) does not properly name the metafile it is redirected to. Netscape behaves as prescribed. In other words, within a template named makeram.tpl a metafile is created with [writefile] and a [redirect] to the newly created metafile is performed. Explorer on Mac downloads a file of the correct MIME type, but named makeram.tpl instead of new.ram. The server log shows that the file requested is new.ram, but Explorer spins its head around and spits the file out with the previous file's name. The only redeeming factor is that on the Mac, the extension is meaningless and the Real Audio player is launched anyway.To keep the metafile unique to each visitor, I use the [cart] unique string to name the file. Then I 'clean' the files out once a day with a trigger.Code snippet: [writefile file=ram/[cart].ram&secure=f] [search for your metafile content] [founditems] [content] [/founditems] [/search] [/writefile] [redirect http://yourserver/ram/[cart].ram]Just make sure to reformat so that there are no extra line breaks in the metafile. Mike> Hi, > I looked at the last thread for using webcatalog to build a RealAudio .ram > file on the fly (we want to randomize our playlists) but saw no > conclusion. Has anyone succeeded in using webcatalog to build the ram file > and then redirect back to the browser as a RealPlayer metafile. I have > been trying out [setmimeheader] with no luck so far. > > Has anyone had success in doing this? > > TIA, > > --bw > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: RealAudio .ram files (Mike Davis 2000)
  2. Re: RealAudio .ram files (Brooks Williams 2000)
  3. RealAudio .ram files (Brooks Williams 2000)
I could not get reliable results using Webcat to serve Real Audio metafiles because of a bug in Webcatalog. The bug is that when you set a MIME header with Webcatalog, instead of replacing a duplicate name:value pair, it just appends a new name:value pair to the list. So the header for a .ram file will look something like:HTTP/1.1 200 OK Content-type: text/html Content-Type: audio/x-pn-realaudioThis is using WebStar as the server. I don't know how it is handled on other platforms.This is not the desired behavior of SetMIMEHeader and I have asked that the issue be addressed in 4.0. I haven't heard a response to that request, however. I haven't tried this since the latest wave of RealPlayer was released, so it's worth some investigation as to whether the latest version chooses the first or second declaration in the header as the MIME type.The following method works like a champ at http://www.voiceoftheinternet.com/ (click on the Real Jukebox link):I use webcatalog to [writefile] a Real Audio metafile, then [redirect] to it. The only strange glitch to this method is Explorer (on Mac, anyway) does not properly name the metafile it is redirected to. Netscape behaves as prescribed. In other words, within a template named makeram.tpl a metafile is created with [writefile] and a [redirect] to the newly created metafile is performed. Explorer on Mac downloads a file of the correct MIME type, but named makeram.tpl instead of new.ram. The server log shows that the file requested is new.ram, but Explorer spins its head around and spits the file out with the previous file's name. The only redeeming factor is that on the Mac, the extension is meaningless and the Real Audio player is launched anyway.To keep the metafile unique to each visitor, I use the [cart] unique string to name the file. Then I 'clean' the files out once a day with a trigger.Code snippet: [writefile file=ram/[cart].ram&secure=f] [search for your metafile content] [founditems] [content] [/founditems] [/search] [/writefile] [redirect http://yourserver/ram/[cart].ram]Just make sure to reformat so that there are no extra line breaks in the metafile. Mike> Hi, > I looked at the last thread for using webcatalog to build a RealAudio .ram > file on the fly (we want to randomize our playlists) but saw no > conclusion. Has anyone succeeded in using webcatalog to build the ram file > and then redirect back to the browser as a RealPlayer metafile. I have > been trying out [setmimeheader] with no luck so far. > > Has anyone had success in doing this? > > TIA, > > --bw > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Mike Davis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b13MacPlugIn - [include] (1997) Not really WebCat (1997) no global [username] or [password] displayed ... (1997) serial number generation (1997) Error:Too many nested [xxx] contexts (1997) Bug Report, maybe (1997) BUG?-.html extention not working. (2000) Fwd: Emailer & IMail List Server (1998) Me know logical no need (2002) beta 6 on OSX wierdness | more (2000) Multiple prices (1997) autosensing lanague selection (1997) listing [text] variables? (1999) PCS Frames (1997) [url] link (1998) Searching multiple fields from one form field (1997) db protection on NT (1997) Big Databases (1997) Show shoppingcart after remove last item (1997) japanese characters (1997)