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

2.0.4 • Public • Published

Installation

npm install --save @types/jmuxer

Summary

This package contains type definitions for jMuxer (https://github.com/samirkumardas/jmuxer).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jmuxer.

index.d.ts

// Type definitions for jMuxer 2.0
// Project: https://github.com/samirkumardas/jmuxer
// Definitions by: Samir Das <https://github.com/samirkumardas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />
import { Duplex } from "stream";

declare namespace JMuxer {
    interface Options {
        node: string | HTMLVideoElement;
        mode?: "both" | "audio" | "video" | undefined;
        flushingTime?: number | undefined;
        clearBuffer?: boolean | undefined;
        fps?: number | undefined;
        debug?: boolean | undefined;
        onReady?: (() => void) | undefined;
        onError?: ((data: any) => void) | undefined;
    }

    interface Feeder {
        audio?: Uint8Array | undefined;
        video?: Uint8Array | undefined;
        duration?: number | undefined;
    }
}

declare class JMuxer {
    constructor(options: JMuxer.Options);
    feed(data: JMuxer.Feeder): void;
    createStream(): Duplex;
    reset(): void;
    destroy(): void;
}
export = JMuxer;
export as namespace JMuxer;

Additional Details

  • Last updated: Fri, 15 Sep 2023 20:36:37 GMT
  • Dependencies: @types/node
  • Global values: JMuxer

Credits

These definitions were written by Samir Das.

Keywords

none

Install

DownloadsWeekly Downloads

3,343

Version

2.0.4

License

MIT

Unpacked Size

4.75 kB

Total Files

5

Last publish

Collaborators

  • types