How Play .mpd is i have my Security Key with PHP?

706 views
Skip to first unread message

Francisco Torron

unread,
Sep 4, 2020, 7:55:01 AM9/4/20
to PHP Desktop

Hi, I am this script in PHP to automatically open .mpd files and it works very well. But now I have others for which I need to include the security key as they recommend that I should handle this.


 $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $hls_link);

        curl_setopt_array($ch, [
                                    CURLOPT_URL             => $hls_link,
                                    CURLOPT_FOLLOWLOCATION  => true,
                                    CURLOPT_NOBODY          => true
                                ]);

        $result=curl_exec($ch);
        $location_header = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);

header("Access-Control-Allow-Origin: *");
header("Content-type: application/dash+xml");
header("Location:$location_header");

Czarek Tomczak

unread,
Sep 4, 2020, 12:44:53 PM9/4/20
to PHP Desktop
Does it work with other web servers? (eg. Apache)

Francisco Torron

unread,
Sep 7, 2020, 10:19:06 AM9/7/20
to PHP Desktop

Czarek Tomczak

unread,
Sep 7, 2020, 10:31:03 AM9/7/20
to PHP Desktop
I was asking if this is the issue with your script or with php desktop? How is this issue is related to phpdesktop?

Francisco Torron

unread,
Sep 7, 2020, 10:44:45 AM9/7/20
to PHP Desktop
Is Only With my script 
Look is you going manually to this URL in chrome 

And Typing this key you can watch this tv channel

Extencion For Chrom to Play MPD Files 


I am trying to automate this procedure.  

Alberto

unread,
Mar 10, 2021, 1:38:45 AM3/10/21
to PHP Desktop
Hi Francisco, i also want to make a video mpd from a mp4, how did you get the license for your video? hope you can help me
Im using GPAC MP4Box
Reply all
Reply to author
Forward
0 new messages