Playlist on sonos speaker from Kodi or plex

I have just purchased a Sonos roam with the intent of playing music playlists from either Kodi or plex while in the bathroom. I’ve found that i can plan music…but only a single song through DLNA. Has anyone figured out to it would be possible to play a playlist on a sonos wireless speaker? (kodi preferred)

You can play Plex media directly to Sonos devices: Plex Media Server - Home Assistant.

Thanks on another forum I was able to figure out how to do playlists through plex…still figuring out how to shuffle the playlist though. Ultimately Kodi is preferred over plex.