Closed TenSpaces closed 7 months ago
My code is following:
PeerConnectionFactory factory = new PeerConnectionFactory(); RTCConfiguration config = new RTCConfiguration(); public void createOffer() { peerConnection = factory.createPeerConnection(config, new PeerConnectionObserver() { @Override public void onIceCandidate(RTCIceCandidate candidate) { } }); peerConnection.createOffer(new RTCOfferOptions(), new CreateSessionDescriptionObserver() { @Override public void onSuccess(RTCSessionDescription description) { System.out.println(111); peerConnection.setLocalDescription(description, new SetSessionDescriptionObserver() { @Override public void onSuccess() { System.out.println("store sccessing!"); } @Override public void onFailure(String error) { System.out.println("store failuring!"); } }); System.out.println(222); } @Override public void onFailure(String error) { System.out.println("build failuring!"); } });
When I run method createOffer, the console only printed 111, does anyone know why that is?
My code is following:
When I run method createOffer, the console only printed 111, does anyone know why that is?