You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement: Update playMedia to use newer Plex API, reducing requests to initiate playback #1624
Suggestion to improve performance by updating the API calls used by playMedia. If my understanding is correct, this would be accomplished by removing the existing playback/playMedia API call and relying on queue creation with paused=0 to create and play the queue in a single API call. If so, it seems like this could be done in a transparently backwards compatible way without changing the signature of playMedia in this library. Elan's comment states that this way to do it has been "supported for years" but it is unclear whether there are some clients which do not support this; in that case, maybe it would be best to fallback to the existing behavior in the event of a failure.
It appears that making this update would add support for Caldera as well as improve performance for existing Plex endpoints.
Never mind, I figured it out. Caldera doesn't show up in my list of clients, but I was able to reproduce it by manually connecting to it.
I think I have an idea for the fix. I won't change the existing client.playMedia method, but instead add a new client.createPlayQueue method that will automatically create the playqueue and start playback in a single command per Elan's comment.
Activity
JonnyWong16 commentedon Jul 7, 2026
Could you provide a code snippet that can reproduce the issue?
I tried this and it seems to be working?
JonnyWong16 commentedon Jul 7, 2026
Never mind, I figured it out. Caldera doesn't show up in my list of clients, but I was able to reproduce it by manually connecting to it.
I think I have an idea for the fix. I won't change the existing
client.playMediamethod, but instead add a newclient.createPlayQueuemethod that will automatically create the playqueue and start playback in a single command per Elan's comment.anthonyrom commentedon Jul 10, 2026
Missed your earlier comments but got the notification from this being closed- nice! Thanks for doing that @JonnyWong16 !