ArdiArtani / Photo-Google-Player-Script

Get Photo Google streaming links
https://photo-google-player-script.now.sh
GNU General Public License v3.0
48 stars 45 forks source link

Basic VideoJS Embed #14

Closed Zebraslive closed 6 years ago

Zebraslive commented 7 years ago

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

khalisafkari commented 7 years ago

Not work http://demo.filedeo.stream/photos/?id=https://photos.google.com/share/AF1QipMkdSWn7sOqwhmWANTAS6V_yVl5wWMVlS3cGILCrUNGiZKqBOxzewUDRjaziw1wiQ/photo/AF1QipP3y-6ywFafXVRGxpAxv_2q_UPnqz1s7n2R5SUN?key=cmM1T2VvM1dPOFdQYzVSRTN4UFBLYVZWdW0xOVJB

Zebraslive commented 7 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.

khalisafkari commented 7 years ago

Show with json url

Zebraslive commented 7 years ago

@khalisafkari http://mizi.ml/drive/?url=https://photos.google.com/share/AF1QipMTEPAiVF8t0YqLukflnOSQjwfd8ARIoT2h37AXvYO1uaWodbeiFoBUDuD_19tEbg/photo/AF1QipPA2Bq0JlAR9LoGD3mogsxSb9OZWEG4XqBDD4Rv?key=cjhUT0xrZjM5NGN2SVRLOVptZU5SMUlKV0lQYWpB

Zebraslive commented 7 years ago

@ArdiArtani Please approve or close this pull when you get some free time. Thanks!

khalisafkari commented 7 years ago

@Zebraslive @ArdiArtani please add fiture grab https://video-downloads-googleusercontent.com available in videos on google photos

Zebraslive commented 7 years ago

@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");