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

2.0.7 • 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.

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

declare namespace JMuxer {
    interface Options {
        node: string | HTMLVideoElement;
        mode?: "both" | "audio" | "video" | undefined;
        flushingTime?: number | undefined;
        maxDelay?: number | undefined;
        clearBuffer?: boolean | undefined;
        fps?: number | undefined;
        readFpsFromTrack?: boolean | undefined;
        debug?: boolean | undefined;
        onReady?: (() => void) | undefined;
        onError?: ((data: any) => void) | undefined;
        onMissingVideoFrames?: ((data: Feeder) => void) | undefined;
        onMissingAudioFrames?: ((data: Feeder) => 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: Mon, 08 Jul 2024 04:37:11 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Samir Das.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jmuxer

Weekly Downloads

4,381

Version

2.0.7

License

MIT

Unpacked Size

4.73 kB

Total Files

5

Last publish

Collaborators

  • types