OpenTok 和 ARCore

huangapple go评论71阅读模式
英文:

OpenTok and ARCore

问题

我只是尝试在Android上创建一个增强现实广播应用程序。
使用ARCore会话。我想知道如何同时使用OpenTok会话和ARCore会话?
因为它们无法一起运行。它们都尝试使用摄像头。我只想在GlSurface上渲染AR,并通过像Agora IO视频消费者一样将其发送到客户端。

谢谢

英文:

I just try to make an AR broadcasting App on Android.
Using ARCore session. I wonder how can I work with at the same time OpenTok Session and ARCore Session?
Because They cant work together. Both of them try to use camera. I just want to render AR on a GlSurface and send with this like Agora IO video consumer to Client side.

Thank you

答案1

得分: 1

正确的方法是让ARCore管理相机,然后从ARCore渲染中获取图像数据并将其传递给OpenTok会话。
Opentok Android SDK示例中有一个使用ARCore的示例代码。

希望这有助于理解它们如何一起工作。

虽然不是针对Android,但在使用ARKit时方法是相同的。在这里以及这篇博文中有另一个示例。

英文:

The right approach is to to let ARCore to manage the camera and then fetch the image data from the ARCore render and feed it to the OpenTok Session.
There is a sample code using ARCore in the Opentok Samples for Android SDK

Hope it helps to understand how it can work together.

Although it is not Android, the approach is the same when using ARKit. There is another sample in here and in this blogpost

huangapple
  • 本文由 发表于 2020年10月17日 17:05:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/64400768.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定