简体   繁体   English

如何在 ios webview 中获取相机视频流?

[英]How to get camera video stream in ios webview?

我有一个 web 应用程序需要在 ios webview 中的摄像头视频流。但是, getUserMedia Api 在 ios webview 中不起作用。那么,还有什么其他解决方案?

If getUserMedia is not an option due to WebKit not yet supporting it, I'm afraid your app will unfortunately stop being a web app.如果由于 WebKit 尚不支持getUserMedia而不是一个选项,恐怕您的应用程序将不幸地不再是网络应用程序。 You can write native code that interoperates with JS runtime, which would allow you to receive a complete video recording from the users camera or you could even somehow establish the direct streaming.您可以编写与 JS 运行时互操作的本机代码,这将允许您从用户相机接收完整的视频记录,或者您甚至可以以某种方式建立直接流媒体。 Thankfully, your question is just broad enough for me not to need to go into details.谢天谢地,你的问题足够广泛,我不需要详细说明。

You should also probably tell your management that the task is too difficult and expensive for the web app and they should probably not even try.您可能还应该告诉您的管理层,这项任务对于 Web 应用程序来说太困难且成本太高,他们甚至不应该尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM