how to pause and unpause video transmission using Android Pjsua 2?

LT
Lobsang tibet
Wed, Oct 7, 2020 7:14 AM

I wish to pause and unpause video transmission in video call on fly without
dropping Audio call using Android Pjsua2 library. But some how i am not
able to understand how to implement that feature to sample android pjsua2
app. Any help would be highly appreciated.

i went through below documentation and not able to understand ..how to
implement it

enum pjsua_call_vid_strm_op This enumeration represents video stream
operation on a call.

PJSUA_CALL_VID_STRM_START_TRANSMIT Start transmitting video stream. This
will cause previously stopped stream to start transmitting again. Note that
no re-INVITE/UPDATE is to be transmitted to remote since this operation
only operates on local stream.

PJSUA_CALL_VID_STRM_STOP_TRANSMIT Stop transmitting video stream. This will
cause the stream to be paused in TX direction, causing it to stop sending
any video packets. No re-INVITE/UPDATE is to be transmitted to remote with
this operation.

link documentation
https://www.pjsip.org/docs/2.2.1/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga8a7b29df0618360407b8aae888421a36

I wish to pause and unpause video transmission in video call on fly without dropping Audio call using Android Pjsua2 library. But some how i am not able to understand how to implement that feature to sample android pjsua2 app. Any help would be highly appreciated. i went through below documentation and not able to understand ..how to implement it enum pjsua_call_vid_strm_op This enumeration represents video stream operation on a call. PJSUA_CALL_VID_STRM_START_TRANSMIT Start transmitting video stream. This will cause previously stopped stream to start transmitting again. Note that no re-INVITE/UPDATE is to be transmitted to remote since this operation only operates on local stream. PJSUA_CALL_VID_STRM_STOP_TRANSMIT Stop transmitting video stream. This will cause the stream to be paused in TX direction, causing it to stop sending any video packets. No re-INVITE/UPDATE is to be transmitted to remote with this operation. link documentation <https://www.pjsip.org/docs/2.2.1/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga8a7b29df0618360407b8aae888421a36>