Play/Pause toggling when there's no play/pause toggle

With IR PRONTO codes you can separate two codes with a pipe (|), save this as a new command and the remote will automatically toggle between them. Unfortunately I haven’t found a solution for IP or Bluetooth without using an external Home automation system.