This repository was archived by the owner on Mar 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Class: Files
Saqib Razzaq edited this page Mar 17, 2019
·
3 revisions
Files is the core class for interacting with physical video files.
Get default file URL
String url
$filename = '247JA_k214';
$directory = '2019/03/11';
$url = true;
$files = new Files($filename, $directory, $url);
$files->getDefault();
Get all files for given video
Direct path to scan for files
An array with matching file paths
$files->get();
Count total files found for a video
Integer
$files->count();
Get total size of found files
Integer size in KB
$files->size();
Get first video file
String
$files->first();
Get last video file
String
$files->last();
Get highest quality video file
String
$files->highest();
Get lowest quality video file
String
$files->lowest();
Get last modified time of files
Integer timestamp
$files->time();
Delete all files for a video
Boolean
$files->delete();
