https://stackoverflow.com/questions/67732330/import-org-webrtc-addiceobserver-cant-find-the-location-error

 

import org.webrtc.AddIceObserver; can't find the location error

Android app to use webrtc and try to import org.webrtc.AddIceObserver; only "import org.webrtc.AddIceObserver;" has the error that can't find the location. is it omitted from API package?...

stackoverflow.com

 

 

====================================내용=====================================

찾아서 지워주자...

//820 라인..

public void addRemoteIceCandidate(final IceCandidate candidate) {
    executor.execute(() -> {
      if (peerConnection != null && !isError) {
        if (queuedRemoteCandidates != null) {
          queuedRemoteCandidates.add(candidate);
        } else {
          peerConnection.addIceCandidate(candidate);
        }
      }
    });
  }
  
  
  //1146 라인..
  
  private void drainCandidates() {
    if (queuedRemoteCandidates != null) {
      Log.d(TAG, "Add " + queuedRemoteCandidates.size() + " remote candidates");
      for (IceCandidate candidate : queuedRemoteCandidates) {
        peerConnection.addIceCandidate(candidate);
      }
      queuedRemoteCandidates = null;
    }
  }

+ Recent posts