PHP Classes

real audio how to

Recommend this page to a friend!

      Radio  >  All threads  >  real audio how to  >  (Un) Subscribe thread alerts  
Subject:real audio how to
Summary:hint needed
Messages:7
Author:dexter
Date:2005-02-16 19:59:10
Update:2009-01-10 20:09:02
 

  1. real audio how to   Reply   Report abuse  
Picture of dexter dexter - 2005-02-16 19:59:12
any hint on how to make this class work with ra files?
Real suggests to call ram filef directly from the html page but I think here it isn't possibile...

tks

  2. Re: real audio how to   Reply   Report abuse  
Picture of Rahman Haghparast Rahman Haghparast - 2005-02-17 03:54:10 - In reply to message 1 from dexter
Hi.
Try this
<?php
include "radio.class.php";
$playlist=array("http://localhost/radio/1.ra","http://localhost/radio/2.ra","http://localhost/radio/3.ra");
$radio=new music;
$radio->format="real";
$radio->playlist=$playlist;
$radio->Start();
?>
This will open your real player to play files.

  3. Re: real audio how to   Reply   Report abuse  
Picture of dexter dexter - 2005-02-17 16:59:10 - In reply to message 2 from Rahman Haghparast
It works fine tks!

In the next days I'll try to hack it to make it work also with local path.

This, togather with a strict access policy could be a nice solution to put online real audio files only for streaming and not for downloading.

  4. Re: real audio how to   Reply   Report abuse  
Picture of dexter dexter - 2005-02-18 22:09:10 - In reply to message 3 from dexter
it doesn't work :(
the class simply prints out one line for each file to play (with proper header) so the problem is within the real player..ot only streams urls not files with paths!

:(

if someone has an answer pls post it here ;)

  5. Re: real audio how to   Reply   Report abuse  
Picture of Krishna Murphy Krishna Murphy - 2005-02-22 06:48:54 - In reply to message 3 from dexter
Have you tried "http://localhost/webroot/audio/classical/s1.ra",... or "http://127.0.0.1/webroot/audio/hiphop/s2.ra",... for the specification?

  6. Re: real audio how to   Reply   Report abuse  
Picture of dexter dexter - 2005-02-22 08:29:15 - In reply to message 5 from Krishna Murphy
the problem is that I need to prevent .ra downloading.
So the only thing I can do is hide them in a non-public directory I guess.

But I think that real audio can only access for streaming to public-published files.

  7. Re: real audio how to   Reply   Report abuse  
Picture of Levi Levi - 2009-01-10 20:09:02 - In reply to message 6 from dexter
Can relay a icecast stream or shoutcas stram?need stream a radio stream. i try openening the stream with fopen and embed stream with php headers.. but don't works. help me please.