Closed Zebraslive closed 6 years ago
@khalisafkari what? it works fine. why post that link here? this pull request hasn't been approved so it's not going to work with the main branch this> http://mizi.ml/embedp.php?id=https://photos.google.com/share/AF1QipMTEPAiVF8t0YqLukflnOSQjwfd8ARIoT2h37AXvYO1uaWodbeiFoBUDuD_19tEbg/photo/AF1QipPA2Bq0JlAR9LoGD3mogsxSb9OZWEG4XqBDD4Rv?key=cjhUT0xrZjM5NGN2SVRLOVptZU5SMUlKV0lQYWpB is for using with iframes.
Show with json url
@ArdiArtani Please approve or close this pull when you get some free time. Thanks!
@Zebraslive @ArdiArtani please add fiture grab https://video-downloads-googleusercontent.com available in videos on google photos
@khalisafkari I haven't added this to my branch yet and I will be adding caching system at some point. Also it's not very stable. Could cause errors.
function dwnload($url) {
$internalErrors = libxml_use_internal_errors(true);
$file = file_get_contents($url);
$dom = new DOMDocument();
@$dom->loadHTML($file);
$count = 0;
$ss = "";
$zd = "";
foreach($dom->getElementsByTagName('script') as $js) {
if ($count === 13 || $count > 14) {
$ss .= $js->nodeValue;
}
$count++;
}
$zd = explode(',"', $ss);
$zd = explode('"', $zd[2]);
return $zd[0]; //final video-downloads.googleusercontent.com url
}
it doesn't appear to allow range headers. I guess this would work as a download link. use like this.
$downloadurl = dwnload("https://photos.google.com/share/AF1QipMTEPAiVF8t0YqLukflnOSQjwfd8ARIoT2h37AXvYO1uaWodbeiFoBUDuD_19tEbg/photo/AF1QipPA2Bq0JlAR9LoGD3mogsxSb9OZWEG4XqBDD4Rv?key=cjhUT0xrZjM5NGN2SVRLOVptZU5SMUlKV0lQYWpB");
Created basic embed that doesn't use encryption on source. It uses videoJS instead of jwplayer and has resolution switcher plugin. http://mizi.ml/embedp.php?id=https://photos.google.com/share/AF1QipMTEPAiVF8t0YqLukflnOSQjwfd8ARIoT2h37AXvYO1uaWodbeiFoBUDuD_19tEbg/photo/AF1QipPA2Bq0JlAR9LoGD3mogsxSb9OZWEG4XqBDD4Rv?key=cjhUT0xrZjM5NGN2SVRLOVptZU5SMUlKV0lQYWpB