app->bind(DirectStreamerInterface::class, static function () { 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); } }