danipragustia / php-videoproxy-gdrive

Proxy video for Google Drive
GNU Affero General Public License v3.0
19 stars 15 forks source link

Set time to 5 and 10 minutes #12

Closed herokuservers closed 3 years ago

herokuservers commented 3 years ago

Hello, This is not much of an issue. I just wanted to know following things.

  1. Does this script uses server's bandwidth or google drive's.
  2. Also how to set cache time to 10 minutes and 5 minutes both.
  3. Also does cache automatically gets deleted after set time

It would be great if you could answer my above questions.

danipragustia commented 3 years ago
  1. Server bandwidth, thats why called proxy.
  2. If you look closely, line 336 was example to do that.
  3. No
herokuservers commented 3 years ago

@danipragustia Okay. I am new to PHP. So I just wanted to know, what would be code to set it to 5 minutes as well as 10 minutes. Please could you help with it.

herokuservers commented 3 years ago

@danipragustia Also it does not play iphone and mac. why is that?

danipragustia commented 3 years ago

I close this issue.

mosquito1459 commented 3 years ago

Caches will expire in 4 hour

$date = $fdata_fetch->cache_date;
$diff = time() - strtotime($date);

if ($diff >= 12600) { // Check if file aleardy 3.5 hours

    $fres = update_stream($fdata['hash']);`
    // ............
}