memento
Where playback is, as one value: the queue, the item, the position and every setting the player holds, including balance, the equaliser, and every picture and subtitle setting. Store it however you like and hand it back to restore. A player that opened a single item reports a queue of one; a player with nothing open reports an empty queue and an index of -1, which restore refuses.