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]