Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/ONVIFClient.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions dist/RTSPClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import * as net from "net";
import * as tls from "tls";
type SocketUnion = net.Socket | tls.TLSSocket;
Expand All @@ -16,12 +18,19 @@ declare enum ReadStates {
READING_RAW_PACKET_SIZE = 3,
READING_RAW_PACKET = 4
}
type Connection = "udp" | "tcp";
export type Connection = "udp" | "tcp";
export type ConnectOptions = {
keepAlive: boolean;
connection?: Connection;
secure?: boolean;
};
type AuthOptions = {
type: "Digest" | "Basic";
realm?: string;
nonce?: string;
algorithm?: "MD5" | "SHA-256";
qop?: "auth" | "auth-int";
nc?: number;
};
type Headers = {
[key: string]: string | number | undefined;
Expand All @@ -32,7 +41,7 @@ type Headers = {
Transport?: string;
Unsupported?: string;
};
type Detail = {
export type Detail = {
codec: string;
mediaSource: ({
type: string;
Expand Down Expand Up @@ -80,11 +89,7 @@ export default class RTSPClient extends EventEmitter {
[key: string]: string;
});
_netConnect(hostname: string, port: number, secure?: boolean): Promise<this>;
connect(url: string, { keepAlive, connection, secure, }?: {
keepAlive: boolean;
connection?: Connection;
secure: boolean;
}): Promise<Detail[]>;
connect(url: string, { keepAlive, connection, secure }?: ConnectOptions): Promise<Detail[]>;
request(requestName: string, headersParam?: Headers, url?: string): Promise<{
headers: Headers;
mediaHeaders?: string[];
Expand Down
62 changes: 44 additions & 18 deletions dist/RTSPClient.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/RTSPClient.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading