Skip to content

Improvement: Update playMedia to use newer Plex API, reducing requests to initiate playback #1624

Description

@anthonyrom

What is your feature request?

Context: Elan's comment on Plex forums, related issue in homeassistant/core#173564

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.

Are there any workarounds?

No response

Code Snippets

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions