From d9e820dfbdc7c9250faf4995db29cfcec7d8b381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20K=C4=85kol?= Date: Wed, 10 Jan 2024 20:12:10 +0100 Subject: [PATCH] make simulcastConfig nulable in TracksAdded v3 --- .../java/org/membraneframework/rtc/SimulcastConfig.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MembraneRTC/src/main/java/org/membraneframework/rtc/SimulcastConfig.kt b/MembraneRTC/src/main/java/org/membraneframework/rtc/SimulcastConfig.kt index 2a33dd0..ab73d77 100644 --- a/MembraneRTC/src/main/java/org/membraneframework/rtc/SimulcastConfig.kt +++ b/MembraneRTC/src/main/java/org/membraneframework/rtc/SimulcastConfig.kt @@ -1,5 +1,7 @@ package org.membraneframework.rtc +import com.google.gson.annotations.SerializedName + /** * Enum describing possible track encodings. * `"h"` - original encoding @@ -7,7 +9,12 @@ package org.membraneframework.rtc * `"l"` - original encoding scaled down by 4 */ enum class TrackEncoding(val rid: String) { - L("l"), M("m"), H("h"); + @SerializedName("l") + L("l"), + @SerializedName("m") + M("m"), + @SerializedName("h") + H("h"); companion object { fun fromString(s: String): TrackEncoding? {