mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-02 14:38:55 +00:00
20 lines
464 B
TypeScript
20 lines
464 B
TypeScript
import type { ProbeResult } from './js-binding'
|
|
import type { Readable } from 'stream'
|
|
|
|
export type StreamProbeResult = {
|
|
stream: Readable;
|
|
result: ProbeResult;
|
|
};
|
|
|
|
export interface Metadata {
|
|
title: string | null;
|
|
author: string | null;
|
|
genre: string | null;
|
|
}
|
|
|
|
export * from './js-binding';
|
|
export function probeStream(
|
|
stream: Readable,
|
|
probeSize?: number
|
|
): Promise<StreamProbeResult>;
|
|
export function readMetadata(result: ProbeResult): Metadata; |