diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/packets.d.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 } |