# @types/jmuxer

> TypeScript definitions for jmuxer

Latest version **2.0.7** (published 2024-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jmuxer
pnpm add @types/jmuxer
yarn add @types/jmuxer
bun add @types/jmuxer
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2024-07-08 |
| First published | 2021-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jmuxer
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jmuxer
- npm.io page: https://npm.io/package/@types/jmuxer

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 2.0.7 (latest) — 2024-07-08
- 2.0.6 (ts4.7) — 2023-11-07
- 2.0.3 (ts4.2) — 2022-08-15
- 2.0.2 (ts3.7) — 2021-11-07
- 2.0.1 (ts3.6) — 2021-07-08
- 2.0.0 (ts3.5) — 2021-05-06
- 2.0.5 — 2023-10-18
- 2.0.4 — 2023-09-15

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jmuxer/index.d.ts)
````ts
/// <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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Samir Das](https://github.com/samirkumardas).

---
_Source: https://npm.io/package/@types/jmuxer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
