用于视频通话的iOS PIP(画中画)是否是私有API? [英] Is iOS PIP (Picture In Picture) for Video Call a private API?

查看:32
本文介绍了用于视频通话的iOS PIP(画中画)是否是私有API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,除了Facetime以外,没有其他视频通话应用程序允许您在通过PIP进行后台通话时进行视频通话/聊天.

I noticed that none of the video calling apps except Facetime allows you to do a video call/chat when in background through PIP.

Facetime是如何实现的?是我们不能使用的私有API吗?

How did Facetime achieve it? Is it a private API that we can’t use?

我试图搜索博客,论坛,StackOverflow,官方文档,但我还没有一个确切的答案.

I have tried to search blogs, forums, StackOverflow, the official documentation, but I haven't seen a definitive answer.

我对此表示怀疑,因为此官方文档提到以下内容,但未在其中指定PIP:

I'm skeptical because this official doc mentions the following, but it didn't specify PIP there:

在后台禁止使用相机.如果您尝试在后台运行摄像机,则捕获会话会发送具有此中断原因的AVCaptureSessionWasInterruptedNotification.如果未显式调用stopRunning方法,则将保留startRunning请求,并且当您的应用回到前台时,您会收到AVCaptureSessionInterruptionEndedNotification并开始运行会话.

Camera usage is prohibited while in the background. If you attempt to start running a camera while in the background, the capture session sends an AVCaptureSessionWasInterruptedNotification with this interruption reason. If you don't explicitly call the stopRunning method, your startRunning request is preserved, and when your app comes back to foreground, you receive AVCaptureSessionInterruptionEndedNotification and your session starts running.

推荐答案

是的,它是通过私有API实现的.第三方应用程序无法执行此操作.

Yes, it is achieved through private APIs. It is not possible for third-party apps to do this.

基本上,人们一直在玩具有低延迟的实时流式视频,并以画中画模式进行显示.正确的做法并不容易,但可行的.但是,您无法在画中画期间保持相机处于活动状态,因此遗憾的是仍然无法进行视频通话(至少是单面通话).

Basically people have played around with live-streaming video with low latency and displaying that in PiP mode. It is not easy to do right, but it is doable. However, you cannot keep the camera active during PiP, so a video call is unfortunately still not possible (at least it would be one-sided).

这篇关于用于视频通话的iOS PIP(画中画)是否是私有API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆