Protected 86 Posted September 21, 2024 Posted September 21, 2024 Are these events being used at all? If I attempt to log all progress events with a handler in my plugin, I don't see these being logged, even if I do something obvious like play a playlist and then move an item within that playlist. Also, while there is plumbing for them, I don't see them being invoked with the others. It would make sense for this stuff to be unused assuming the playback queue is currently playlist-agnostic and only contains an ordered list of upcoming items initially populated from the current state of the playlist at the time playback begins but it would be nice to have confirmation. I don'd mind tracking playlist changes on my side, the intent being to update the queue (in the session) if someone changes the playlist. However, is this currently possible? I foresee two main difficulties: - Playlist changes don't currently seem to fire any events, except possibly metadata update events or item repository stuff, which I don't have access to anyway. What's the best way to track playlist changes? Do I just need to grab the playlist from the library on a timer and peek into it? (during playback of that playlist only.) - Seeing how the playlist ID fields of session and session events are blank (only the length and position are provided which might just be a reflection from the playback queue), is there a way for me to tell, from my plugin - that is, from something in PlaybackProgressEventArgs as received by PlaybackStart - that the queue was initialized from a playlist, and which playlist that is? Because that seems to be key - if this information isn't available at all, I don't think there's anything I can do? I tried dumping the entire event callback argument into a json and looking for the ids of the playlist items (which I pulled directly from library.db) but found no matches.
Luke 42077 Posted September 26, 2024 Posted September 26, 2024 Hi, yes they are, but not all apps report their play queue to the server yet. I would test using the web app.
Protected 86 Posted September 26, 2024 Author Posted September 26, 2024 I'm working exclusively with the web app!
Protected 86 Posted September 26, 2024 Author Posted September 26, 2024 I log every ISessionManager.PlaybackProgress event associated with the session and observe that even if I change playlists (using the web app), no Playlist* events are fired... ...unless these specific events don't carry a Session? I should probably look into that.
Luke 42077 Posted September 26, 2024 Posted September 26, 2024 Right These are play queue events, not playlists.
Protected 86 Posted September 26, 2024 Author Posted September 26, 2024 Understood. Is there any way for me to track changes in the playlist used to initialize the play queue?
Solution Luke 42077 Posted September 26, 2024 Solution Posted September 26, 2024 17 minutes ago, Protected said: Understood. Is there any way for me to track changes in the playlist used to initialize the play queue? Not currently no, but probably at some point there will be.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now