From: Steve McMillen <[EMAIL PROTECTED]> Subject: Re: Auto Switching between Pre-recorded and Live Unfortunately not an easy thing to do. If you are running the player thru the browser, you might put a simple javascript call into the web page and periodically send a request to a CGI script (send the results to a hidden frame). The CGI script can either return an empty html page (<html></html>) to the hidden frame or return a dynamically generated RAM file to your live stream (see ramgen script included below). Of course, you would have to do something on the back end to control the script so it knew when to send the user to a live stream. You might also want to check with the RealNetworks Professional Services group as they have developed a custom RealProducer for some clients which is capable of switching inputs between a live and an on-demand source. Cheers! [EMAIL PROTECTED] Example in TCL (http://www.scriptics.com) but you can rewrite logic in any language if you choose. ----------------- begin of file -------------------- cpiaimage:/windows/files/Programs/tcltk/ramgen# cat ramgen.tcl # Usage: http://webserver.com/cgi-bin/ramgen.tcl?ram=144.ra # http://webserver.com/cgi-bin/ramgen.tcl?rpm=144.ra # modify following line for your server ip or name set server "your.realserver.com" # Compute MIME Type Req'd # ########################### foreach {filetype filename} [split $env(QUERY_STRING) "="] {} set filetypes(ram) audio/x-pn-realaudio set filetypes(rpm) audio/x-pn-realaudio-plugin # Return Headers # ################## puts "HTTP/1.0 OK" puts "Content-Type: $filetypes($filetype)\n" puts "rtsp://$server/$filename" puts "--stop--" puts "pnm://$server/$filename" ----------------- end of file -------------------- RealForum wrote: > > From: "Chad Megenis" <[EMAIL PROTECTED]> > Subject: Auto Switching between Pre-recorded and Live > > Hi all, > > when a live stream is not present on the server the user picks up a file = > with an identical name and it will play on his player, however if in the = > mean time (while hes listening to the pre-recorded file) the specific = > live broadcast starts, is there a way for the server to automatically = > start pushing this content to the user without the user having to = > stop/start his player? > > thanks, > > Chad Megenis > Analyst/Programmer > Ariel Communications Limited ******************************************************* The RealForum is an email discussion group focused on using RealNetworks products. The RealForum is a place to post messages about the best methods for creating content using RealNetworks technologies and the planning and implementation of streaming-media web sites. Archives of RealForum can be found at http://realforum.real.com If you ever want to remove yourself from this mailing list, you can send mail to <[EMAIL PROTECTED]> with the following command in the body of your email message: unsubscribe realforum or from another account, besides the address you subscribed with: unsubscribe realforum <[EMAIL PROTECTED]>
