From 4e99a3325318c902cd78ea9f760f46d79acde5c0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 3 Oct 2022 11:28:16 +0200 Subject: riesencommit (part 1) --- common/packets.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/packets.d.ts b/common/packets.d.ts index c8f65d6..7991e21 100644 --- a/common/packets.d.ts +++ b/common/packets.d.ts @@ -39,9 +39,11 @@ export interface /* enum */ RelayMessage { ice_candidate?: F_RTCIceCandidateInit, } export interface ChatMessage { text?: string, image?: string } +export type ResourceKind = "track" | "file" export interface ProvideInfo { id: string, // for datachannels this is `label`, for tracks this will be the `id` of the only associated stream. - kind: "audio" | "video" | "file" + kind: ResourceKind + track_kind?: "audio" | "video" label?: string size?: number } -- cgit v1.2.3-70-g09d2