1

我正在 android 中实现 Webrtc。在实施时我收到此错误

点击此处查看问题

List<PeerConnection.IceServer> iceServers = new ArrayList<>();
PeerConnection.IceServer.Builder iceServerBuilder = PeerConnection.IceServer.builder("stun:x.ga");
iceServerBuilder.setTlsCertPolicy(PeerConnection.TlsCertPolicy.TLS_CERT_POLICY_INSECURE_NO_CHECK); //this does the magic.

PeerConnection.IceServer stunServer =  iceServerBuilder.createIceServer();

PeerConnection.IceServer turnServer =
        PeerConnection.IceServer.builder("turn:x.ga?transport=udp")
                .setUsername("user7")
                .setPassword("abc123456")
                .createIceServer();

在 .builder 方法中出现错误,您还可以检查图像

我从这个演示中引用。这个演示工作正常,没有出现 .builder 问题。

请问各位大神知道怎么解决吗?

4

0 回答 0