<div dir="ltr">Hell everybody.<br>I'll try to make it short.<br>Trying to use libnice in win32 app + chromium embeded. (CEF)<br>CEF is kind of webkit, it runs few processes (browser process, page renderer process) and some threads in them.<br>
I got all libnice bindings and initializations and gmainloop running in Gthread. <br><br><div>Not using those mutex locks as in sdp-example, instead all parsing and recieving work is accomplished in connected functions like cb_candidate_gathering_done (like in simple-example, instead of sending signals from those functions to thread function and make some work there as in sdp-example).</div>
<div>In those functions i'm waiting for data recieved (candidates or text messages) through while loop, that looks for data appearing in string variable (data to this variable sent from renderer CEF process to browser CEF process i.e main win32 process, through simple CEF IPC as soon as user put it in field).<div>
<br>Problem: when i parse string from sdp-example cmd app to my app - it waorks fine, connecting and sending messages to cmd. When i try to parse string from my app to cmd i got state change failed on connection.<br><br>Here's the code, only main cpp and h, there is some CEF handlers, but they only send some bool and string data through IPC between processes to parse it in Nice:<br>
<a href="https://gist.github.com/anonymous/ae8aae0c5901a68bb7f9">https://gist.github.com/anonymous/ae8aae0c5901a68bb7f9</a><br><br>At first I was trying to use kind of simple-example without gthread just in winmain, I thought that CEF threads, that I got no controll after, messing something up, but now, when everything in Gthread - I don't know what is wrong.<br>
<br></div><div>Not so short, but hope You can give me some useful advise.</div></div></div>