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

1.4.3 • 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

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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Alexander Knöbel.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/upnp-mediarenderer-client

Weekly Downloads

16

Version

1.4.3

License

MIT

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • types