How to retrieve the media source id of a media

I’ve create a jellyfin integration that implement the media source interface, i.e. the interface that allows you to browse media from a Google Cast entity.

Questions are:

  1. Can we play a media via media_player.play_media by passing a media id?
  2. If so, how can we retrieve that media id?

Thanks

Have you found out how to do that ? killing my head trying to find a way to start a specific music playlist on my jellyfin server from HA :frowning: