Issue 217: | Peerconnection sample application, receiver doesn't start video capture | |
1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Checkout latest webrtc code 2. Build peerconnection sample 3. Run peerconnection sample (server and 2 clients) What is the expected output? What do you see instead? Expected to be able to do video call, but no video (local and remote) on initiator side, and no local video on receiver side (only remote video seen). What version of the product are you using? On what operating system? Windows 7 Please provide any additional information below. There is no problem when test with server_test.html
Feb 2 (2 days ago)
,
Just checked out latest webrtc code and tried again, the issue is still there. The issue could be fixed by adding two lines to "PeerConnectionImpl::SignalingMessage()" in peerconnectionimpl.cc, but I'm not sure if the fix is correct or not, could anybody help to take a look? Thanks. Here is the code: ----------------------------------------------- bool PeerConnectionImpl::SignalingMessage( const std::string& signaling_message) { // Deserialize signaling message cricket::SessionDescription* incoming_sdp = NULL; std::vector<cricket::Candidate> candidates; if (!ParseJsonSignalingMessage(signaling_message, &incoming_sdp, &candidates)) { return false; } bool ret = false; if (GetReadyState() == NEW) { // set direction to incoming, as message received first session_->set_incoming(true); ret = session_->OnInitiateMessage(incoming_sdp, candidates); // MY FIX - start if(ret) ret = session_->Connect(); // MY FIX - end } else { ret = session_->OnRemoteDescription(incoming_sdp, candidates); } return ret; } | |
► Sign in to add a comment |
147 KB View Download
277 KB View Download