Class MyPlexDevice

This object represents resources connected to your Plex server that provide playback ability from your Plex Server, iPhone or Android clients, Plex Web, this API, etc. The raw xml for the data presented here can be found at: https://plex.tv/devices.xml

Hierarchy

  • PlexObject
    • MyPlexDevice

Constructors

  • Parameters

    • server: PlexServer
    • data: any
    • Optionalinitpath: string
    • Optionalparent: PlexObject

    Returns MyPlexDevice

Properties

clientIdentifier: string
connections?: string[]

List of connection URIs for the device.

createdAt: Date
device: string
id: string
key: string

plex relative url

lastSeenAt: Date
model: string
name: string
parent?: WeakRef<any>

WeakRef to the parent object that this object is built from.

platform: string
platformVersion: string
product: string
productVersion: string
provides: string
publicAddress: string
screenDensity: string
screenResolution: string
server: PlexServer
token: string
vendor: string
version: string
TAG: string = 'Device'

xml element tag

TYPE: string = null

xml element type

key: string = 'https://plex.tv/devices.xml'

Methods

  • Remove this device from your account

    Returns Promise<void>

  • Returns True if this object is a child of the given class.

    Parameters

    • cls: any

    Returns boolean

  • Refreshing a Library or individual item causes the metadata for the item to be refreshed, even if it already has metadata. You can think of refreshing as "update metadata for the requested item even if it already has some". You should refresh a Library or individual item if:

    Returns Promise<void>

  • Reload the data for this object from this.key.

    Parameters

    • Optionalekey: string

    Returns Promise<void>