Created
April 11, 2020 09:15
-
-
Save Abhi1code/f6d51f0253cac8e6744e13c17c94af1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void createOffer(){ | |
peerConnection.createOffer(new CustomSdpObserver(){ | |
@Override | |
public void onCreateSuccess(SessionDescription sessionDescription) { | |
super.onCreateSuccess(sessionDescription); | |
peerConnection.setLocalDescription(new CustomSdpObserver(), sessionDescription); | |
// sessionDescription.description is string which needs to the shared across network | |
} | |
@Override | |
public void onCreateFailure(String s) { | |
super.onCreateFailure(s); | |
// Offer creation failed | |
} | |
}, new MediaConstraints()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment