@ctrl/plex
    Preparing search index...

    Class PlexSonosClient

    A linked Sonos speaker controlled through Plex's Sonos service.

    Hierarchy (View Summary)

    Index
    address?: string
    baseurl: string

    HTTP address of the client, without a trailing slash.

    device?: string

    Best guess on the type of device (PS4, iPhone, Linux).

    deviceClass?: string

    Device class (pc, phone, stb).

    key: "/resources" = '/resources'
    lanIP?: string
    local?: boolean
    machineIdentifier?: string
    model?: string
    platform?: string
    platformVersion?: string
    product?: string

    Product name (Plex for iOS, Plex Web).

    profile?: string
    protocol?: string
    protocolCapabilities: string[]

    Controllers the client supports (navigation, playback, timeline, mirror, playqueues).

    protocolVersion?: string
    relayed?: boolean
    remotePublicAddress?: string
    secure?: boolean
    server?: PlexServer

    Server this client was found on, used for proxying commands.

    state?: string
    timeout: number

    Request timeout in milliseconds.

    title?: string

    Display name of the client (Johns iPhone).

    userID?: number
    vendor?: string
    version?: string
    • get isProxied(): boolean

      True when commands are sent through PlexClient.server instead of the client.

      Returns boolean

    • Send a request to the client. Players answer in JSON, XML, or plain text depending on the product, so XML is converted to the same shape as Plex JSON responses.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Build a URL for this client, optionally including its token.

      Parameters

      • key: string
      • __namedParameters: { includeToken?: boolean } = {}

      Returns URL