Added missing functions to C API

This commit is contained in:
Paul-Louis Ageneau
2020-03-06 23:47:10 +01:00
parent 834ea9b041
commit 29ffb34fe8
7 changed files with 366 additions and 216 deletions

View File

@ -79,11 +79,11 @@ MY_ON_RECV_CANDIDATE_FROM_REMOTE([pc](string candidate, string mid) {
### Observe the PeerConnection state
```cpp
pc->onStateChanged([](PeerConnection::State state) {
pc->onStateChange([](PeerConnection::State state) {
cout << "State: " << state << endl;
});
pc->onGatheringStateChanged([](PeerConnection::GatheringState state) {
pc->onGatheringStateChange([](PeerConnection::GatheringState state) {
cout << "Gathering state: " << state << endl;
});