Optimise videostream

This commit is contained in:
2024-09-16 23:18:51 +10:00
parent a5b5256793
commit 2caff58f73
2 changed files with 37 additions and 31 deletions

View File

@@ -50,6 +50,7 @@ class VideoController extends Controller
public function view(Video $o)
{
if ($o->isReadable())
(new VideoStream($o->file_path()))->start();
(new VideoStream($o->file_name(FALSE)))
->start();
}
}