app->bind(DirectStreamerInterface::class, static function (): DirectStreamerInterface { return match (config('koel.streaming.method')) { 'x-sendfile' => new XSendFileStreamer(), 'x-accel-redirect' => new XAccelRedirectStreamer(), default => new PhpStreamer(), }; }); $this->app->bind(TranscodingStreamerInterface::class, TranscodingStreamer::class); $this->app->bind(ObjectStorageStreamerInterface::class, S3Streamer::class); } }