Completed the YouTubeMusicController class implementation, including:
toggleRepeatMode (changed from setRepeatMode because UIs only ever let users toggle rather than set directly anyway)
toggleLike
toggleDislike
getPlayerState
getQueue
Adding and removing the curtain during the prepareForSession logic chain
I was able to get access to the internal state/store of YTM, which allowed me to implement getPlayerState and getQueue in a more reliable manner than YTM+. However, the internal state is all stored as UI-ready strings, so there was a fair amount of data manipulation to do to get it to our standardized data interface.
Additionally, since I changed setRepeatMode to toggleRepeatMode, I updated the Apple Music and Amazon Music implementations.
Overview
Completed the YouTubeMusicController class implementation, including:
toggleRepeatMode
(changed fromsetRepeatMode
because UIs only ever let users toggle rather than set directly anyway)toggleLike
toggleDislike
getPlayerState
getQueue
prepareForSession
logic chainI was able to get access to the internal state/store of YTM, which allowed me to implement getPlayerState and getQueue in a more reliable manner than YTM+. However, the internal state is all stored as UI-ready strings, so there was a fair amount of data manipulation to do to get it to our standardized data interface.
Additionally, since I changed
setRepeatMode
totoggleRepeatMode
, I updated the Apple Music and Amazon Music implementations.