summaryrefslogtreecommitdiff
path: root/src/GodotCreateSessionDescriptionObserver.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-06-13 15:52:46 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-01-03 19:35:20 +0100
commit5769d8b2de3a62e9e798d8fa59c71ba30f9cf88a (patch)
treed34c1a75c01ff606244d81234175977b9329937a /src/GodotCreateSessionDescriptionObserver.cpp
parent423454086e21d40a545f9e46d6e35c1b3c557d77 (diff)
downloadfork-godot-webrtc-native-5769d8b2de3a62e9e798d8fa59c71ba30f9cf88a.tar.gz
fork-godot-webrtc-native-5769d8b2de3a62e9e798d8fa59c71ba30f9cf88a.tar.bz2
fork-godot-webrtc-native-5769d8b2de3a62e9e798d8fa59c71ba30f9cf88a.zip
Merge observers
Diffstat (limited to 'src/GodotCreateSessionDescriptionObserver.cpp')
-rw-r--r--src/GodotCreateSessionDescriptionObserver.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/GodotCreateSessionDescriptionObserver.cpp b/src/GodotCreateSessionDescriptionObserver.cpp
deleted file mode 100644
index f9d110c..0000000
--- a/src/GodotCreateSessionDescriptionObserver.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "WebRTCLibPeerConnection.hpp"
-
-using namespace godot_webrtc;
-
-WebRTCLibPeerConnection::GodotCSDO::GodotCSDO(WebRTCLibPeerConnection *parent) {
- this->parent = parent;
-}
-
-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("session_description_created", 2, desc->type().c_str(), sdp.c_str());
-};
-
-void WebRTCLibPeerConnection::GodotCSDO::OnFailure(const std::string &error){};