For an iOS application, I need to know that when the remote party is stopped its video for an existing call. Is there any API or event that triggered by pjsip library?
Thanks in advance for your help.
Method reference for pjsua_call_vid_stream_is_running
:
Determine if video stream for the specified call is currently running (i.e. has been created, started, and not being paused) for the specified direction. https://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga23c0bd5a335b5fa0d02404cd03ca0d5e
Using the decoding direction we can check if the incoming video is running, but using the PJMEDIA_DIR_DECODING
direction.
bool video_active =
pjsua_call_vid_stream_is_running(call_id, med_idx, PJMEDIA_DIR_DECODING);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With