Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 12, 2025
1 parent d699f22 commit 12d8da9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -4231,14 +4231,19 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal
if (!empty($cdn_obj->enable_storage)) {
if ($type === '.m3u8') {
$source['url'] = CDNStorage::getURL("{$filename}/index.m3u8");
$source['line'] = __LINE__;
} else if($type === '.mp4' && $indexMP4Exits) {
//var_dump("{$filename}/index.mp4");
$source['url'] = CDNStorage::getURL("{$filename}/index.mp4");
$source['line'] = __LINE__;
} else {
$source['url'] = CDNStorage::getURL("{$filename}{$type}");
$source['line'] = __LINE__;
$source['indexMP4Exits'] = $indexMP4Exits;
$source['filename'] = $filename;
$source['type'] = $type;
}
$source['url_noCDN'] = $source['url'];
$source['line'] = __LINE__;
TimeLogEnd($timeLog1, __LINE__, $timeLog1Limit);
} elseif (!empty($aws_s3)) {
$source = $aws_s3->getAddress("{$filename}{$type}");
Expand Down

0 comments on commit 12d8da9

Please sign in to comment.