How to Serialyze / Desirialyze "RTCIceCandidate"

126 views
Skip to first unread message

古山一夫

unread,
Dec 8, 2021, 7:36:29 AM12/8/21
to discuss-webrtc
Hi, I try to make Unity WebRTC Application, and I meet seriouse question about RTCIceCandidate Serialization, becuase I need handshake this infomation between Master and slave.
Unity has class RTCIceCandidate, this class has no ToJSON method, and all of proparty is read only, therefore only create way is RTCIceCandidate with RTCIceCandidateInit, but this way is incomplete creation.
How to serialize / deserialize RTCIceCandidate ?

古山一夫

unread,
Dec 14, 2021, 12:56:02 AM12/14/21
to discuss-webrtc
I tested many serializers.
NG Unity  JsonUtility
NG Microsoft XML Serializer / caused by class attribute
NG Microsoft Binary Serializer / caused by class attribute
OK NewtonSoft Json.NET


2021年12月8日水曜日 21:36:29 UTC+9 古山一夫:
Reply all
Reply to author
Forward
0 new messages