Erhan
Erhan

Reputation: 906

How can I understand that the remote party is stopped its video in 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.

Upvotes: 5

Views: 247

Answers (1)

Liam Gray
Liam Gray

Reputation: 1129

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);

Upvotes: 1

Related Questions