@types/upnp-mediarenderer-client
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

Installation

npm install --save @types/upnp-mediarenderer-client

Summary

This package contains type definitions for upnp-mediarenderer-client (https://github.com/thibauts/node-upnp-mediarenderer-client#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/upnp-mediarenderer-client.

index.d.ts

// Type definitions for upnp-mediarenderer-client 1.4
// Project: https://github.com/thibauts/node-upnp-mediarenderer-client#readme
// Definitions by: Alexander Knöbel <https://github.com/alexkn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare class MediaRendererClient {
    constructor(url: string);
    play(callback?: (err: Error, result: any) => void): void;
    pause(callback?: (err: Error, result: any) => void): void;
    stop(callback?: (err: Error, result: any) => void): void;
    seek(seconds: number, callback?: (err: Error, result: any) => void): void;
    load(url: string, options: any, callback?: (err: Error, result: any) => void): void;
    getVolume(callback?: (err: Error, result: number) => void): void;
    setVolume(volume: number, callback?: (err: Error, result: any) => void): void;
    getPosition(callback: (err: Error, result: any) => void): void;
    getDuration(callback: (err: Error, result: any) => void): void;

    on(
        event: "status" | "loading" | "playing" | "paused" | "stopped" | "speedChanged",
        callback: (value: any) => void,
    ): void;
}

export = MediaRendererClient;

Additional Details

  • Last updated: Wed, 30 Aug 2023 19:35:34 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alexander Knöbel.

Keywords

none

Install

DownloadsWeekly Downloads

22

Version

1.4.1

License

MIT

Unpacked Size

5.04 kB

Total Files

5

Last publish

Collaborators

  • types