gpt4 book ai didi

ios - 我怎么能理解远程方在 pjsip 中停止了它的视频

转载 作者:行者123 更新时间:2023-12-03 11:16:51 25 4
gpt4 key购买 nike

对于 iOS 应用程序,我需要知道当远程方停止其现有调用的视频时。是否有任何由 pjsip 库触发的 API 或事件?
在此先感谢您的帮助。

最佳答案

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


使用解码方向,我们可以检查传入的视频是否正在运行,但使用 PJMEDIA_DIR_DECODING 方向。
bool video_active = 
pjsua_call_vid_stream_is_running(call_id, med_idx, PJMEDIA_DIR_DECODING);

关于ios - 我怎么能理解远程方在 pjsip 中停止了它的视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64431022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com