HTTP address of the client
Token used to access this client
OptionaldeviceOptionalmachineOptionalplatformOptionalplatformOptionalproductOptionalprotocolOptionalprotocolOptionalprotocolOptionaltitleAlias of reload as any subsequent requests to this client will be made directly to the device even if the object attributes were initially populated from a PlexServer.
Open the context menu on the client.
Navigate back on the client.
Navigate to home on the client.
Navigate to music on the client.
Returns true if the client is currently playing media.
If true, paused media counts as playing.
Move selection down.
Move selection left.
Move selection right.
Move selection up.
Jump to next letter in lists.
Page down in lists.
Page up in lists.
Pause playback.
Optionalmtype: stringMedia type filter (video, music, photo).
Start or resume playback.
Optionalmtype: stringMedia type filter (video, music, photo).
Start playback of media using a play queue.
A Playable media item with a playlistItemID or ratingKey.
Playback options.
Jump to previous letter in lists.
Toggle or set proxy-through-server mode. When enabled, commands are sent through the Plex server rather than directly to the client.
Optionalvalue: booleanEnable or disable proxy mode. If omitted, toggles current state.
Optionalserver: PlexServerThe PlexServer to proxy through. Required if not already set.
Main method used to handle HTTPS requests to the Plex client. This method helps by encoding the response to utf-8 and parsing the returned XML into and ElementTree object. Returns None if no data exists in the response. TODO: use headers
Optionalheaders: Record<string, string>Seek to the specified offset in milliseconds.
Position in milliseconds.
Optionalmtype: stringMedia type filter (video, music, photo).
Select the current item.
Send a command to the client, either directly or via the server proxy.
The player command path (e.g. 'playback/play').
Additional parameters for the command.
Set the active audio stream.
ID of the audio stream.
Optionalmtype: stringMedia type filter (video, music, photo).
Set multiple playback parameters at once.
Parameters to set.
Set repeat mode.
Repeat mode (0=off, 1=repeat one, 2=repeat all).
Optionalmtype: stringMedia type filter (video, music, photo).
Set shuffle mode.
Shuffle mode (0=off, 1=on).
Optionalmtype: stringMedia type filter (video, music, photo).
Set the active audio, subtitle, or video stream.
Stream selection options.
Set the active subtitle stream.
ID of the subtitle stream. Use 0 to disable subtitles.
Optionalmtype: stringMedia type filter (video, music, photo).
Set the active video stream.
ID of the video stream.
Optionalmtype: stringMedia type filter (video, music, photo).
Set volume level.
Volume level (0-100).
Optionalmtype: stringMedia type filter (video, music, photo).
Skip to the next item.
Optionalmtype: stringMedia type filter (video, music, photo).
Skip to the previous item.
Optionalmtype: stringMedia type filter (video, music, photo).
Skip to a specific item by key.
The key of the item to skip to.
Optionalmtype: stringMedia type filter (video, music, photo).
Step back (small rewind).
Optionalmtype: stringMedia type filter (video, music, photo).
Step forward (small fast-forward).
Optionalmtype: stringMedia type filter (video, music, photo).
Stop playback.
Optionalmtype: stringMedia type filter (video, music, photo).
Returns the active (non-stopped) timeline, or undefined if nothing is playing.
Poll the client for timeline data (what is currently playing).
Optionalwait: numberTime in seconds to wait for a response.
Toggle the on-screen display.
Build a URL string with proper token argument. Token will be appended to the URL if either includeToken is True or TODO: CONFIG.log.show_secrets is 'true'.
Main class for interacting with a Plex client. This class can connect directly to the client and control it or proxy commands through your Plex Server. To better understand the Plex client API's read this page: https://github.com/plexinc/plex-media-player/wiki/Remote-control-API Attributes: TAG (str): 'Player' key (str): '/resources' device (str): Best guess on the type of device this is (PS, iPhone, Linux, etc). deviceClass (str): Device class (pc, phone, etc). machineIdentifier (str): Unique ID for this device. model (str): Unknown platform (str): Unknown platformVersion (str): Description product (str): Client Product (Plex for iOS, etc). protocol (str): Always seems ot be 'plex'. protocolCapabilities (list): List of client capabilities (navigation, playback,
timeline, mirror, playqueues).
protocolVersion (str): Protocol version (1, future proofing?)
server (:class:
~plexapi.server.PlexServer): Server this client is connected to. session (:class:~requests.Session): Session object used for connection. state (str): Unknown title (str): Name of this client (Johns iPhone, etc). token (str): X-Plex-Token used for authenication vendor (str): Unknown version (str): Device version (4.6.1, etc). _session (obj): Requests session object used to access this client. _proxyThroughServer (bool): Set to True after calling :func:~plexapi.client.PlexClient.proxyThroughServer()(default False).