new VideoResponseStreamAction($video), StreamingMethod::NGINX => new VideoNginxStreamAction($video), default => throw new RuntimeException('VIDEO_STREAMING_METHOD must be specified in your .env file'), }; return $action->stream(); } }