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