Created
March 25, 2021 08:04
-
-
Save DmitriySosnovskiy/f26a95471ed2df4fa52855ec67bab0f9 to your computer and use it in GitHub Desktop.
start/stop video pjsip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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