Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于removeIceCandidates的小bug #9

Open
dingyi9982 opened this issue Oct 14, 2019 · 0 comments
Open

关于removeIceCandidates的小bug #9

dingyi9982 opened this issue Oct 14, 2019 · 0 comments

Comments

@dingyi9982
Copy link

Android项目里有个bug,如下代码:
@OverRide
public void onIceCandidatesRemoved(IceCandidate[] iceCandidates) {
for (int i = 0; i < iceCandidates.length; i++) {
Log.i(TAG, "onIceCandidatesRemoved: " + iceCandidates[i]);
}
mPeerConnection.removeIceCandidates(iceCandidates);
}

不应在此处调用PeerConnection的removeIceCandidates函数,应该发送remove消息给对方,对方收到该消息后调用PeerConnection的removeIceCandidates。并且同时应在本端接收对方的remove消息,并调用PeerConnection的removeIceCandidates。

不过只是小问题,因为即使不告诉对方自己删除的ice candidates,也仍能照常连通,只是可能影响性能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant