2.0.6 • Published 6 months ago

@types/jmuxer v2.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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;
    }

    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: Sun, 07 Nov 2021 17:31:29 GMT
  • Dependencies: @types/node
  • Global values: JMuxer

Credits

These definitions were written by Samir Das.

2.0.5

7 months ago

2.0.4

8 months ago

2.0.6

6 months ago

2.0.3

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago