Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DmitriySosnovskiy/f26a95471ed2df4fa52855ec67bab0f9 to your computer and use it in GitHub Desktop.
Save DmitriySosnovskiy/f26a95471ed2df4fa52855ec67bab0f9 to your computer and use it in GitHub Desktop.
start/stop video pjsip
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());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment