rtsp-relay-xsxz01-fixed
Version:
📽 Relay an RTSP stream through an existing express.js server
31 lines (30 loc) • 1.01 kB
TypeScript
declare namespace _exports {
export { Options, Application, WebSocket, Stream };
}
declare function _exports(app: Application, server?: import("http").Server | import("https").Server): {
/**
* You must include a script tag in the HTML to import this script
*
* Alternatively, if you have set up a build process for front-end
* code, you can import it instead:
* ```js
* import { loadPlayer } from "rtsp-relay/browser";
* ```
*/
scriptUrl: string;
killAll(): void;
/** @param {Options} props */
proxy({ url, verbose, ...options }: Options): (ws: WebSocket) => void;
};
export = _exports;
type Options = {
url: string;
additionalFlags?: string[];
verbose?: boolean;
transport?: "udp" | "tcp" | "udp_multicast" | "http";
windowsHide?: boolean;
useNativeFFmpeg?: boolean;
};
type Application = import("express").Application;
type WebSocket = import("ws");
type Stream = import("child_process").ChildProcessWithoutNullStreams;