WebRCT initial pc has msg connecting no incoming video

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
Status: New
Owner: ----


Sign in to add a comment
 
Reported by zhangyin...@gmail.com, Jan 4, 2012
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

Comment 1 by zhangyin...@gmail.com, Jan 25, 2012
Two log files attached. Both are logged on same machine by same peerconenction_client app. One is recorded when acting as initiator, the other is as receiver.

Is there any update on this issue?
Thanks.
peerconnection_client_receiver.log
147 KB   View   Download
peerconnection_client_initiator.log
277 KB   View   Download
Comment 2 by zhangyin...@gmail.com, 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值