[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #5578 [Flashproxy]: Investigate WebRTC for flash proxy NAT punching
#5578: Investigate WebRTC for flash proxy NAT punching
----------------------------+-----------------
Reporter: dcf | Owner: dcf
Type: task | Status: new
Priority: normal | Milestone:
Component: Flashproxy | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
----------------------------+-----------------
Comment (by cjb):
dcf, you were super close -- here are the only changes needed on top of
those you already made:
{{{
--- webrtc_cmd_dcf.cc 2014-11-15 21:58:44.300202059 -0500
+++ webrtc_cmd.cc 2014-11-15 21:59:02.703906098 -0500
@@ -166,7 +166,6 @@
servers_.push_back(server_);
constraints_.SetMandatoryReceiveAudio(false);
constraints_.SetMandatoryReceiveVideo(false);
-
constraints_.AddOptional(webrtc::MediaConstraintsInterface::kEnableDtlsSrtp,
webrtc::MediaConstraintsInterface::kValueTrue);
}
bool WebRtcConnectionManager::InitConnection() {
@@ -176,7 +175,7 @@
NULL);
stream_ =
peer_connection_factory_->CreateLocalMediaStream(kStreamLabel);
stream_->AddTrack(audio_track_);
- peer_connection_->AddStream(stream_, &constraints);
+ peer_connection_->AddStream(stream_);
data_channel_ = peer_connection_->CreateDataChannel("test1", NULL);
data_channel_->RegisterObserver(new
ChatDataChannelObserver(data_channel_));
return true;
}}}
Also needed to add more requirements to the build script, which I copied
from those for peerconnection_client:
{{{
--- libjingle_examples_cjb.gyp 2014-11-15 22:01:55.617125522 -0500
+++ libjingle_examples.gyp 2014-11-15 22:02:08.768914041 -0500
@@ -100,6 +100,9 @@
],
'dependencies': [
'libjingle.gyp:libjingle',
+ '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
+ 'libjingle.gyp:libjingle_peerconnection',
+ '<@(libjingle_tests_additional_deps)',
],
# TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4309, ],
}}}
Then re-run gclient sync --force followed by ninja, and the resulting
binary is able to text chat with serverless-webrtc in-browser.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5578#comment:37>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs