getMediaInfo() public method

Get the currently active media info.
public getMediaInfo ( ) : array
return array
 /**
  * Get the current tracks in the queue.
  *
  * @param Controller $controller The Controller to grab the state of
  *
  * @return static
  */
 protected function getTracks(Controller $controller)
 {
     $this->tracks = $controller->getQueue()->getTracks();
     if ($controller->isStreaming()) {
         $media = $controller->getMediaInfo();
         $this->stream = new Stream($media["CurrentURI"]);
     }
     return $this;
 }