Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Browser

Hierarchy

  • Browser

Index

Constructors

Methods

Constructors

constructor

Methods

scan

  • scan(uniqueIdentifier?: string, timeout?: number): Promise<AppleTV[]>
  • Scans for AppleTVs on the local network.

    Parameters

    • Optional uniqueIdentifier: string

      An optional identifier for the AppleTV to scan for. The AppleTV advertises this via Bonjour.

    • Optional timeout: number

      An optional timeout value (in seconds) to give up the search after.

    Returns Promise<AppleTV[]>

    A promise that resolves to an array of AppleTV objects. If you provide a uniqueIdentifier the array is guaranteed to only contain one object.

Generated using TypeDoc