summary refs log tree commit diff
path: root/src/util/schemas/SelectProtocolSchema.ts
blob: 0ba0c23bdeda50ac63390a99f67641d96f9931d8 (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
}