Rabbit-R1/switch port/java/sources/org/mediasoup/droid/MediasoupClient.java

26 lines
759 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package org.mediasoup.droid;
import android.content.Context;
import org.webrtc.PeerConnectionFactory;
/* loaded from: classes3.dex */
public class MediasoupClient {
private static native String nativeVersion();
static {
System.loadLibrary("mediasoupclient_so");
}
public static void initialize(Context context) {
initialize(context, null);
}
public static void initialize(Context context, String str) {
PeerConnectionFactory.initialize(PeerConnectionFactory.InitializationOptions.builder(context).setFieldTrials(str).setEnableInternalTracer(true).setNativeLibraryName("mediasoupclient_so").createInitializationOptions());
}
public static String version() {
return nativeVersion();
}
}