[codplayerd] Refactor prev/next functionality
[codplayerd] Stricter state checking in transport commands