summaryrefslogtreecommitdiff
path: root/src/GodotPeerConnectionObserver.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-01-03 19:43:01 +0100
committerGitHub <noreply@github.com>2020-01-03 19:43:01 +0100
commit61e45cb083a2879bed238f3052f7c12bd230da16 (patch)
tree8a8f727a8d79342f2bd5df79bc58fc32b964b821 /src/GodotPeerConnectionObserver.cpp
parent423454086e21d40a545f9e46d6e35c1b3c557d77 (diff)
parent6983019cab6acc39d3e4157f7e03aafadb2291df (diff)
downloadgodot-webrtc-native-61e45cb083a2879bed238f3052f7c12bd230da16.tar.gz
godot-webrtc-native-61e45cb083a2879bed238f3052f7c12bd230da16.tar.bz2
godot-webrtc-native-61e45cb083a2879bed238f3052f7c12bd230da16.zip
Merge pull request #10 from Faless/refactor/better-scons
Better build script, readme
Diffstat (limited to 'src/GodotPeerConnectionObserver.cpp')
-rw-r--r--src/GodotPeerConnectionObserver.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/GodotPeerConnectionObserver.cpp b/src/GodotPeerConnectionObserver.cpp
deleted file mode 100644
index c3f8f39..0000000
--- a/src/GodotPeerConnectionObserver.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "WebRTCLibPeerConnection.hpp"
-#include "WebRTCLibDataChannel.hpp"
-
-using namespace godot_webrtc;
-
-WebRTCLibPeerConnection::GodotPCO::GodotPCO(WebRTCLibPeerConnection *parent) {
- this->parent = parent;
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnSignalingChange(webrtc::PeerConnectionInterface::SignalingState new_state) {
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnAddStream(rtc::scoped_refptr<webrtc::MediaStreamInterface> stream) {
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnRemoveStream(rtc::scoped_refptr<webrtc::MediaStreamInterface> stream) {
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnDataChannel(rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel) {
- parent->queue_signal("data_channel_received", 1, WebRTCLibDataChannel::new_data_channel(data_channel));
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnRenegotiationNeeded() {
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnIceConnectionChange(webrtc::PeerConnectionInterface::IceConnectionState new_state) {
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnIceGatheringChange(webrtc::PeerConnectionInterface::IceGatheringState new_state) {
-}
-
-void WebRTCLibPeerConnection::GodotPCO::OnIceCandidate(const webrtc::IceCandidateInterface *candidate) {
- // Serialize the candidate and send it to the remote peer:
-
- godot::Dictionary candidateSDP;
-
- godot::String candidateSdpMidName = candidate->sdp_mid().c_str();
- int candidateSdpMlineIndexName = candidate->sdp_mline_index();
- std::string sdp;
- candidate->ToString(&sdp);
- godot::String candidateSdpName = sdp.c_str();
-
- parent->queue_signal("ice_candidate_created",
- 3,
- candidateSdpMidName,
- candidateSdpMlineIndexName,
- candidateSdpName);
-}