ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.37k stars 158 forks source link

How to stream camera with AR objects. #60

Open cloud-github opened 2 years ago

cloud-github commented 2 years ago

Environment

Please provide the following information about your environment:

  1. Development OS: iPhone X (15.0.2)
  2. xCode version: 13.0
  3. Viro Version: "@viro-community/react-viro": "^2.20.2"

Description

I have successfully install and run Viro starter kit. Now, I want to stream AR enabled camera feed to some third party streaming engine. How can i achieve this.

In ViroARSceneNavigator, there is startVideoRecording() . This basically records and stores in camera roll. I actually want to have continuous streams of camera along with AR objects. I couldn't find any event/api available for accessing camera stream in documentations

Please help on this.

doranteseduardo commented 2 years ago

Actually that's a commonly asked feature, we'll work on it.

fukemy commented 1 year ago

Hi, any news on this situation, I am looking for this too. I found one example is using Agora WebRTC + DeepAr, they can do it's by using this follow(IOS) below line:

AgoraSDK.pushExternalVideoFrame(frame) <- here is frame got from `DeepAR SDK`

But Im not sure how implement of pushExternalVideoFrame function. Still waiting for some solution, thanks you