summary refs log tree commit diff
path: root/src/util/schemas/SelectProtocolSchema.ts
blob: 92958e976c9cd9e28d663d80d8f26ffce702e25e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export interface SelectProtocolSchema {
	protocol: "webrtc" | "udp";
	data:
	| string
	| {
		address: string;
		port: number;
		mode: string;
	};
	sdp?: string;
	codecs?: {
		name: "opus" | "VP8" | "VP9" | "H264";
		type: "audio" | "video";
		priority: number;
		payload_type: number;
		rtx_payload_type?: number | null;
	}[];
	rtc_connection_id?: string; // uuid
}