Added experimental download function

This commit is contained in:
Fritz Ramirez
2024-05-15 15:46:28 +08:00
parent 25838d06ea
commit a430d30cc7
5 changed files with 37 additions and 2 deletions
@@ -1119,6 +1119,14 @@ class StudioPlusVideoController extends Controller
return Storage::download($path, str_replace('.mov', '.mp4', $studioPlusVideo->filename));
}
public function downloadVideoExperimental1(Request $request, StudioPlusVideo $studioPlusVideo)
{
$disk = Storage::disk('gcs');
$path = $studioPlusVideo->getRawOriginal('video_url');
return $disk->download($path);
}
public function getTypes()
{
return response()->json([