fix: ensure CallStats JSON fields are converted to strings (looking at you, iOS)

This commit is contained in:
Andrew 2026-05-06 23:49:02 +07:00
parent d421c46a71
commit d0ccf08e05

View file

@ -174,7 +174,7 @@ class CallStats {
json["fecDownloadBandwidth"], json["fecDownloadBandwidth"],
json["fecRepairedPacketsNumber"], json["fecRepairedPacketsNumber"],
json["fecUploadBandwidth"], json["fecUploadBandwidth"],
json["iceState"], json["iceState"].toString(),
json["jitterBufferSizeMs"], json["jitterBufferSizeMs"],
json["latePacketsCumulativeNumber"], json["latePacketsCumulativeNumber"],
json["localLateRate"], json["localLateRate"],
@ -193,15 +193,15 @@ class CallStats {
json["rtpSent"], json["rtpSent"],
json["senderInterarrivalJitter"], json["senderInterarrivalJitter"],
json["senderLossRate"], json["senderLossRate"],
json["srtpSource"], json["srtpSource"].toString(),
json["srtpSuite"], json["srtpSuite"].toString(),
json["uploadBandwidth"], json["uploadBandwidth"],
json["upnpState"], json["upnpState"].toString(),
json["zrtpAuthTagAlgo"], json["zrtpAuthTagAlgo"].toString(),
json["zrtpCipherAlgo"], json["zrtpCipherAlgo"].toString(),
json["zrtpHashAlgo"], json["zrtpHashAlgo"].toString(),
json["zrtpKeyAgreementAlgo"], json["zrtpKeyAgreementAlgo"].toString(),
json["zrtpSasAlgo"], json["zrtpSasAlgo"].toString(),
json["isZrtpKeyAgreementAlgoPostQuantum"], json["isZrtpKeyAgreementAlgoPostQuantum"],
); );