PHP Video Proxy Google Drive

kaotasao21

New member
Aug 31, 2020
8
1
3
[error] 15143#15143: *169093 FastCGI sent in stderr: "PHP message: PHP Fatal error: strict_types declaration must be the very first statement in the script in

PHP7.2
 

cflo360

New member
Sep 1, 2020
10
1
3
[error] 15143#15143: *169093 FastCGI sent in stderr: "PHP message: PHP Fatal error: strict_types declaration must be the very first statement in the script in

PHP7.2
Either your missing php extenstion or your installation of php7.2 is not setup correctly, are you using a share hosting or vps ?
 

j4rwo

New member
Sep 7, 2020
6
0
1
Hello, i got a problem
{"status":412,"error":"Failed write data."}

but when i change permssion its got HTTP ERROR 500

using vps ubuntu 18 apache

maybe u can help sir ?
cflo360

i think problem is permission.. but dont know to fix it
 

cflo360

New member
Sep 1, 2020
10
1
3
Hello, i got a problem
{"status":412,"error":"Failed write data."}

but when i change permssion its got HTTP ERROR 500

using vps ubuntu 18 apache

maybe u can help sir ?
cflo360

i think problem is permission.. but dont know to fix it
Try creating a folder called _cache with permission 777 & play_cache with permission 777
make sure your have php extenstion for curl
 
Last edited:

kai

New member
Apr 15, 2020
20
2
3
{"status":412,"error":"Failed write data."}
I've tried everything and nothing works
anyone care to help
 

j4rwo

New member
Sep 7, 2020
6
0
1
hello, can anyone help make a combined file of this script for jwplayer, when I play in the player the resolution will come out, and it will come out according to the resolution obtained, for example I choose 720p, then a display of 720p, 360p video resolution options will appear, and when I choose 1080p, then the resolution options will appear 1080p, 720p, 360p, etc.??

this is a video script to show the result of this script in my jwplayer, but it doesn't work properly
[CODE
function proxy_drive($link)
{
$curl = new cURL();
preg_match('/https?:\/\/(?:www\.)?(?:drive|docs)\.google\.com\/(?:file\/d\/|open\?id=)?([a-z0-9A-Z_-]+)(?:\/.+)?/is', $link, $id);
$getSource = file_get_contents( 'https://domain-proxy/index.php?id='.$id[1]);
$deJson = json_decode($getSource);
$oriLink = $curl->getOri($deJson->hash);
$reso = $curl->getOri($deJson->sources);
$sources = '
[{"label":"'.$reso[0].'","type":"video\/mp4","file":"https://domain-proxy/index.php?id='.$oriLink.'&stream='.$reso[0].'"},
{"label":"'.$reso[1].'","type":"video\/mp4","file":"https://domain-proxy/index.php?id='.$oriLink.'&stream='.$reso[1].'"},
{"label":"'.$reso[2].'","type":"video\/mp4","file":"https://domain-proxy/index.php?id='.$oriLink.'&stream='.$reso[2].'"}]';
return $sources;
}

[/CODE]
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu