From 2449d977f1c0fe98bf022ce5608972ae3aef0bce Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 5 Oct 2022 19:58:57 +0200 Subject: update protocol.rs --- client-native-lib/src/protocol.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'client-native-lib/src') diff --git a/client-native-lib/src/protocol.rs b/client-native-lib/src/protocol.rs index 9573f51..78a5a29 100644 --- a/client-native-lib/src/protocol.rs +++ b/client-native-lib/src/protocol.rs @@ -56,10 +56,18 @@ pub enum ChatMesssage { Image(String), } +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "snake_case")] +pub enum TrackKind { + Audio, + Video, +} + #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ProvideInfo { id: String, - kind: String, // TODO actually enum + kind: String, // not an enum so we dont fail if we dont support it + track_kind: Option, label: Option, size: Option, } -- cgit v1.2.3-70-g09d2