public function moveTrack(int $from, int $to): PlaylistInterface
    {
        $data = $this->soap("AVTransport", "ReorderTracksInSavedQueue", [
            "UpdateID"              =>  $this->getUpdateID(),
            "TrackList"             =>  (string) $from,
            "NewPositionList"       =>  (string) $to,
        ]);
        $this->updateId = $data["NewUpdateID"];

        return $this;
    }
public function moveTrack(int $from, int $to): PlaylistInterface
    {
        $data = $this->soap("AVTransport", "ReorderTracksInSavedQueue", [
            "UpdateID"              =>  $this->getUpdateID(),
            "TrackList"             =>  (string) $from,
            "NewPositionList"       =>  (string) $to,
        ]);
        $this->updateId = $data["NewUpdateID"];

        return $this;
    }
public function moveTrack ( int $ from , int $ to ) : PlaylistInterface { $ data = $ this -> soap ( "AVTransport" , "ReorderTracksInSavedQueue" , [ "UpdateID" => $ this -> getUpdateID ( ) , "TrackList" => ( string ) $ from , "NewPositionList" => ( string ) $ to , ] ) ; $ this -> updateId = $ data [ "NewUpdateID" ] ; return $ this ; }
Move a track from one position in the playlist to another.

@param int $from The current position of the track in the playlist (zero-based)
@param int $to The desired position in the playlist (zero-based)

@return $this
Move a track from one position in the playlist to another .