Skip to content

Instantly share code, notes, and snippets.

View DmitriySosnovskiy's full-sized avatar
😎

Dmitriy Sosnovskiy DmitriySosnovskiy

😎
View GitHub Profile
public void setVideoTransmission(Boolean isVideoTransmitting) {
Log.d(TAG, "setVideoTransmission " + isVideoTransmitting);
try {
CallVidSetStreamParam param = new CallVidSetStreamParam();
if (isVideoTransmitting) {
getCurrentCall().vidSetStream(pjsua_call_vid_strm_op.PJSUA_CALL_VID_STRM_START_TRANSMIT, param);
} else getCurrentCall().vidSetStream(pjsua_call_vid_strm_op.PJSUA_CALL_VID_STRM_STOP_TRANSMIT, param);
} catch (Exception e) {
Log.d(TAG, e.getMessage());
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.RootActivity">
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/mapView"