Load library dependencies in AppRTCMobile.

Older Android versions have trouble locating the library dependencies
automatically. Loading them manually resolves the issue.

BUG=webrtc:6751

Review-Url: https://codereview.webrtc.org/2635233002
Cr-Commit-Position: refs/heads/master@{#16179}
This commit is contained in:
sakal
2017-01-20 01:46:50 -08:00
committed by Commit bot
parent be850e1b1d
commit 3e9229045e

View File

@ -64,6 +64,14 @@ import org.webrtc.VideoRenderer;
public class CallActivity extends Activity implements AppRTCClient.SignalingEvents,
PeerConnectionClient.PeerConnectionEvents,
CallFragment.OnCallEvents {
// Fix for devices running old Android versions not finding the libraries.
// https://bugs.chromium.org/p/webrtc/issues/detail?id=6751
static {
System.loadLibrary("c++_shared");
System.loadLibrary("boringssl.cr");
System.loadLibrary("protobuf_lite.cr");
}
public static final String EXTRA_ROOMID = "org.appspot.apprtc.ROOMID";
public static final String EXTRA_LOOPBACK = "org.appspot.apprtc.LOOPBACK";
public static final String EXTRA_VIDEO_CALL = "org.appspot.apprtc.VIDEO_CALL";