diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-05-21 14:08:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 14:08:30 +0200 |
commit | 423454086e21d40a545f9e46d6e35c1b3c557d77 (patch) | |
tree | 34c78fa5e627d35b9302618724dfbb7ff0e5e77c /src/GodotCreateSessionDescriptionObserver.cpp | |
parent | f2cf2e5340c1aa20516aea4863b8f7a46f317bb6 (diff) | |
parent | 599ed98f6cb956d5189ec4b4905dbc2a8a1b5d9a (diff) | |
download | fork-godot-webrtc-native-423454086e21d40a545f9e46d6e35c1b3c557d77.tar.gz fork-godot-webrtc-native-423454086e21d40a545f9e46d6e35c1b3c557d77.tar.bz2 fork-godot-webrtc-native-423454086e21d40a545f9e46d6e35c1b3c557d77.zip |
Merge pull request #3 from Faless/channels_pr
Update to new DataChannel API, singleton load.
Diffstat (limited to 'src/GodotCreateSessionDescriptionObserver.cpp')
-rw-r--r-- | src/GodotCreateSessionDescriptionObserver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GodotCreateSessionDescriptionObserver.cpp b/src/GodotCreateSessionDescriptionObserver.cpp index 77d1308..f9d110c 100644 --- a/src/GodotCreateSessionDescriptionObserver.cpp +++ b/src/GodotCreateSessionDescriptionObserver.cpp @@ -1,16 +1,16 @@ -#include "WebRTCLibPeer.hpp" +#include "WebRTCLibPeerConnection.hpp" using namespace godot_webrtc; -WebRTCLibPeer::GodotCSDO::GodotCSDO(WebRTCLibPeer *parent) { +WebRTCLibPeerConnection::GodotCSDO::GodotCSDO(WebRTCLibPeerConnection *parent) { this->parent = parent; } -void WebRTCLibPeer::GodotCSDO::OnSuccess(webrtc::SessionDescriptionInterface *desc) { +void WebRTCLibPeerConnection::GodotCSDO::OnSuccess(webrtc::SessionDescriptionInterface *desc) { // serialize this offer and send it to the remote peer: std::string sdp; // sdp = session description protocol desc->ToString(&sdp); - parent->queue_signal("offer_created", 2, desc->type().c_str(), sdp.c_str()); + parent->queue_signal("session_description_created", 2, desc->type().c_str(), sdp.c_str()); }; -void WebRTCLibPeer::GodotCSDO::OnFailure(const std::string &error){}; +void WebRTCLibPeerConnection::GodotCSDO::OnFailure(const std::string &error){}; |