Speed up development with full-stack environments for every branch.

Learn More

rtsp describe [PHP]

Forked from Hello World.

0 Runs 1 Views 0 Copies

RTSP Describe PHP

Saved

Saved

dsp_interactive 1

dsp_interactive
published 7 days ago

    <?php 
    $url = "rtsp://www.example.com/stream";  
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_VERBOSE, true);
    curl_setopt($curl, CURLOPT_HEADER, true);
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RTSP_STREAM_URI, $url);
    curl_setopt($curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_DESCRIBE);
    curl_setopt($curl, CURLOPT_HTTPHEADER, array(
        'User-Agent: LibVLC/2.2.1 (LIVE555 Streaming Media v2014.07.25)'));
    $res = curl_exec($curl);
    curl_close($curl);
    echo $res;
    ?>
    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).