i8beef / node-red-contrib-castv2

MIT License
22 stars 15 forks source link

Workaround for Issue #57 #58

Closed aXaut closed 3 years ago

aXaut commented 3 years ago

added workaround to make QUEUE_NEXT and QUEUE_PREV work for DefaultMediaReceiver

i8beef commented 3 years ago

Did you test this out ok? My example was just pseudo code, so I wasn't POSITIVE it would work as written.

aXaut commented 3 years ago

Yes I tested it with DefaultMediaReceiver with multiple tracks, with just one track, YouTube and Spotify (Spotify started via Phone, but QUEUE_NEXT and PREV did work via node). By testing this, I also found out that next and prev on Youtube lead to an INVALID_COMMAND error if you have a queue of videos started via YT App, but did not have time to further investigate.

Btw I didn’t really copy&paste it, but looked up myself which properties to use. But respect, all except where to get the AppId from the current receiver was accurate in your pseudo ;)