/** * Get the current playing attributes (stream/position/etc). * * @param Controller $controller The Controller to grab the state of * * @return static */ protected function getState(Controller $controller) { $this->state = $controller->getState(); $details = $controller->getStateDetails(); $this->track = $details->queueNumber; $this->position = $details->position; return $this; }