Hierarchy

  • ContentDirectory

Constructors

  • Initializes an instance of ContentDirectory class.

    Parameters

    • IP: string

      The IP address of the device.

    • PORT: string

      The port number of the device.

    • contentDirectoryDetails: Service

      The details of the Content Directory service.

    • parser: XMLParser

      An XML parser instance.

    • builder: XMLBuilder

      An XML builder instance.

    Returns ContentDirectory

Properties

IP: string
PORT: string
builder: XMLBuilder
date_to_items: Record<string, UPNPImage[]> = {}
parser: XMLParser
service_details: Service

Methods

  • Generates the Content Directory tree.

    Returns Promise<void>

    Returns a promise that resolves when the tree generation is finished.

    Throws

    Will throw an error if the tree generation fails.

  • Private

    Sends a browse request to the Content Directory service.

    Parameters

    Returns Promise<string>

    Returns a promise that resolves to the response body of the SOAP request.

    Throws

    Will throw an error if the SOAP request fails.

Generated using TypeDoc