Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I understand that the remote party is stopped its video in pjsip

Tags:

ios

video

pjsip

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.

like image 765
Erhan Avatar asked Nov 07 '22 04:11

Erhan


1 Answers

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);
like image 101
Liam Gray Avatar answered Nov 15 '22 10:11

Liam Gray