ArdiArtani / Google-Drive-Player-Script

Grab google drive streaming links (redirector.googlevideo.com/videoplayback?..)
https://ardiartani.github.io/Google-Drive-Player-Script/
MIT License
321 stars 229 forks source link

Sometimes we can't get the drive link (the function Drive($link) is return empty) #59

Closed aalfiann closed 6 years ago

aalfiann commented 6 years ago

I just applied this script in my production web movie, and sometimes we can't get the drive link..

This is only happen for a few users only.

The solution i've made this far is create the auto switch to redirect to google drive link..

But I just want to know why this could happen? so i can fix it.

Thanks

Zebraslive commented 6 years ago

what does the error log say for when the video doesn't load? I've never seen this myself. so far only errors I've seen failed to open stream: php_network_getaddresses: getaddrinfo failed Name or service not known SSL: Handshake timed out failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden failed to open stream: operation failed

dungvaph03374 commented 6 years ago

there're plenty of reason so can't figure it out without log you can listen on error then load the drive api link https://www.googleapis.com/drive/v3/files/drive_id?alt=media&key=app_key

sergeyhartmann commented 6 years ago

@aalfiann the same library, but using guzzlehttp https://github.com/sergeyhartmann/streaming-link-generator

zeydhan2 commented 6 years ago

Hello, the reason is because your google drive link being limited (24 hours limit exceed) so the download link cannot be generated. I have an alternative, you can use player such as www.gdriveplayer.us to bypass this limitation