SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict delpino's Avatar
    Join Date
    Nov 2001
    Location
    London
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    header to livestream

    This is not working:

    header("Location: rtsp://address_of_livestream"); exit;

    I guess I have to change the header to:

    header("Content-type: abc");

    abc would be the livestream content type..
    http://www.antosch-and-lin.com - Language Learning

  2. #2
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I'd imagine something like this would work.

    PHP Code:
    header('Content-type: abc');
    header('Location: rtsp://address_of_livestream'); 

  3. #3
    SitePoint Addict delpino's Avatar
    Join Date
    Nov 2001
    Location
    London
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm .. and what is abc? [img]images/smilies/smile.gif[/img] Its a Realaudio stream by the way..
    http://www.antosch-and-lin.com - Language Learning

  4. #4
    ********* Member website's Avatar
    Join Date
    Oct 2002
    Location
    Iceland
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *Here* are the mime types for almost everything, check the file extension and then place the appropriate mime type instead of 'abc', my guess is it should be
    PHP Code:
    header('Content-type: audio/x-realaudio'); 
    - website

  5. #5
    SitePoint Addict delpino's Avatar
    Join Date
    Nov 2001
    Location
    London
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    doesn't really work for me.. any other ideas?
    http://www.antosch-and-lin.com - Language Learning

  6. #6
    ********* Member website's Avatar
    Join Date
    Oct 2002
    Location
    Iceland
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what about
    PHP Code:
    <?php //start of php file
    header('Content-type: audio/x-realaudio'); 
    readfile('location/of/target/file.extension');
    //end of php file
    ?>
    Something like that

    But anyway, what are you trying to achive ?
    - website

  7. #7
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a note, you don't set headers if you are just going to be redirecting. The Content-Type needs to be set on the actual file. (Website's would work correctly if that is what you want.)

    Some more information would be a good idea, me thinks.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •