getStateDetails() public method

Get attributes about the currently active track in the queue.
public getStateDetails ( ) : State
return State Track data containing the following elements
 /**
  * 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;
 }