private function applyTracks(ControllerInterface $controller): ControllerStateInterface
    {
        $this->tracks = $controller->getQueue()->getTracks();

        if ($controller->isStreaming()) {
            $media = $controller->getMediaInfo();
            $this->stream = new Stream($media["CurrentURI"]);
        }

        return $this;
    }
private function applyTracks(ControllerInterface $controller): ControllerStateInterface
    {
        $this->tracks = $controller->getQueue()->getTracks();

        if ($controller->isStreaming()) {
            $media = $controller->getMediaInfo();
            $this->stream = new Stream($media["CurrentURI"]);
        }

        return $this;
    }
private function applyTracks ( ControllerInterface $ controller ) : ControllerStateInterface { $ this -> tracks = $ controller -> getQueue ( ) -> getTracks ( ) ; if ( $ controller -> isStreaming ( ) ) { $ media = $ controller -> getMediaInfo ( ) ; $ this -> stream = new Stream ( $ media [ "CurrentURI" ] ) ; } return $ this ; }
Get the current tracks in the queue.

@param ControllerInterface $controller The Controller to grab the state of

@return $this
Get the current tracks in the queue .