Skip to content

Instantly share code, notes, and snippets.

View Abhi1code's full-sized avatar
🎯
Focusing

Abhishek Meharia Abhi1code

🎯
Focusing
View GitHub Profile
peerConnection = peerConnectionFactory.createPeerConnection(rtcConfig, new CustomPeerConnectionObserver() {
@Override
public void onIceCandidate(IceCandidate iceCandidate) {
super.onIceCandidate(iceCandidate);
//
}
@Override
public void onDataChannel(DataChannel dataChannel) {
package com.matrixf...n;
import org.webrtc.SdpObserver;
import org.webrtc.SessionDescription;
public class CustomSdpObserver implements SdpObserver {
public CustomSdpObserver(){
}
package com.m...;
import com.mat...;
import org.webrtc.DataChannel;
import org.webrtc.IceCandidate;
import org.webrtc.MediaStream;
import org.webrtc.PeerConnection;
import org.webrtc.RtpReceiver;
package com.m...;
import org.webrtc.DataChannel;
public class CustomDataChannelObserver implements DataChannel.Observer {
public CustomDataChannelObserver(){
}
@Override
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.matr..."
minSdkVersion 21
targetSdkVersion 29
versionCode 1