I am new in scirpting with mopidy and did not find way to listen to an end of stream event.
I would like to react on reaching the end of a playlist.
The Audio API gives a solution by using the AudioListener (reached_end_of_stream)
But how can I access this Listener by using Python?
The MopidyAPI or JSON RPC API can handle event listening but just for some core events, not for audio events.
Yes, the Mopidy Core API only exposes the Core API. I am not sure why we don’t have a Core tracklist_ended event but it sounds like a good feature request. As it stands, you cannot access that event.
You could probably do so if you were writing a Mopidy frontend. But only the Core API is accessible via JSON RPC. If you want to reduce the wait, you could also implement the feature? Presumably there isn’t much to it.