<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="auto"><div dir="auto">I'm attempting to build a Xamarin Forms app (Android) that uses the WebRTC stuff. I'm running into some quirky behavior and I really don't know where to begin to diagnose it. I can respond with details about how I've got the project setup, but I think the biggest question I have at the moment is related to the following errors which get printed out by logcat: <br><br><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px">08-11 16:43:16.105 I/GLib+stdout(29646): Connecting to server...<br style="box-sizing:border-box"></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px"><b>08-11 16:43:17.336 I/GLib+stdout(29646): Conversion from character set “en-US” to “UTF-8” is not supported<br style="box-sizing:border-box"></b></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px"><b>08-11 16:43:17.336 E/GLib+GLib(29646): g_error_new_literal: assertion 'message != NULL' failed</b><br style="box-sizing:border-box"></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px">08-11 16:43:17.349 I/GLib+stdout(29646): Connected to signalling server<br style="box-sizing:border-box"></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px">08-11 16:43:17.349 I/GLib+stdout(29646): Registering id 4532 with server<br style="box-sizing:border-box"></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px"><b>08-11 16:43:17.355 I/GLib+stdout(29646): Conversion from character set “en-US” to “UTF-8” is not supported<br style="box-sizing:border-box"></b></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px"><b>08-11 16:43:17.355 E/GLib+GLib(29646): g_error_new_literal: assertion 'message != NULL' failed<br style="box-sizing:border-box"></b></div><div style="box-sizing:border-box;color:rgba(0,0,0,0.9);font-size:14px"><b>08-11 16:43:17.355 E/GLib+GLib(29646): g_error_free: assertion 'error != NULL' failed</b></div></div><div><br>Basically, the websocket code connects to my signalling server, but then immediately disconnects after the above errors related to message!=null assertions fail. I have to assume the root of the issue is due to the character set conversion error, but I don't know for sure. <br><br>When using the exact same .so files and GStreamer.jar from a pure Java Android app, it works (it's basically the gstwebrtc sample), but for whatever reason when interacting with these files from Xamarin the above errors get dumped. <br><br>After some investigation I found this: </div><div dir="auto"><br></div><a href="https://lists.freedesktop.org/archives/gstreamer-devel/2007-September/015697.html" target="_blank">https://lists.freedesktop.org/archives/gstreamer-devel/2007-September/015697.html</a></div><div dir="auto"><br></div><div>...which appears to be the closest I can find to what I'm encountering. However, I'm not entirely sure how to set this parameter since I'm not explicitly calling gst_init() from the Android code. So, I'm somewhat lost as to what message is (possibly?) not being converted correctly and (possibly?!) failing the assertion. <br><br>My back is somewhat up against the wall here, any input would be greatly appreciated. Thanks, <br><br>P.S. the code is here: <a href="https://github.com/kwende/webrtc_gstreamer_example/tree/AddXamarin">https://github.com/kwende/webrtc_gstreamer_example/tree/AddXamarin</a>. I'm essentially trying to implement the sample in Xamarin Forms with the hopes of adding it to the samples. </div>
</div></div></div>