There are two strange problems i encountered:
1.If remote_stream->stop first and then local_sream->close, it cannot close camera at all(LED is still on).
2.Memory leak: it will leak about 13M bytes for each conference.
The main steps of local hangup are below：
One special test to illustrate:
step 1: LocalPeer do not register OnStreamAdded callback and do not publish local stream.
step 2: So LocalPeer will do nothing after Connect
step 3: RemotePeer publish stream manually and stop after a while.
step 4: memory will leak about 13MBytes after remote stop publish every time.
Any Problems? Thank you!
For more complete information about compiler optimizations, see our Optimization Notice.