AgoraIO-Community / AR-Remote-Support

This is a POC of how to build a Remote support app (similar to Vuforia Chalk) using ARKit and Agora.io's Video SDK.
MIT License
23 stars 11 forks source link

video is getting freeze not able to share ar content #7

Closed behappiest closed 4 years ago

behappiest commented 4 years ago

Hi I was trying to use this github repo master branch, I am able to lauch the app and join the room I can see my video in both the phones but I am not able to draw anything and rear camera video feed is not visible in another phone. Please let me know what need to be improved from my side.

Thanks

digitallysavvy commented 4 years ago

@behappiest What devices are you using to test?

behappiest commented 4 years ago

@digitallysavvy i tried in iPhone XR and iphone 6s.

digitallysavvy commented 4 years ago

Which device is using the AR session? From my experience its best to use the XR to "create" the channel and have the 6s "join" the channel.

behappiest commented 4 years ago

I tried both, i tried to create session from XR but from XR video is freezing within 1 sec, and same freeze image is visible in 6s but when I create session from 6s, in 6s only blank screen comes and nothing is visible in XR

digitallysavvy commented 4 years ago

Are there any errors displayed in the Xcode logger?

digitallysavvy commented 4 years ago

@behappiest can you please share logs for the issue you are experiencing?

digitallysavvy commented 4 years ago

@behappiest are you still experiencing this issue? were you able to resolve it?

behappiest commented 4 years ago

Hi @digitallysavvy i will share the logs after 15 Jan, i am out for some work.

digitallysavvy commented 4 years ago

@behappiest I think I may have found your issue. When running this app within iOS13 on iPhone X (or above) there is an error thrown by the AVSession, for some reason it fails to initialize. This issue does not occur on iPadOS 13 nor does it occur on iPhone 7. It is caused when you attempt to use the audio data from ARKit.

I have filed a bug with Agora.io's engineers. In the mean team, you can fix this issue by disabling the audio provided by ARKit comment out ARBroadcaster line 62 and don't use a custom Audio Source...comment out ARBroadcaster line 53

Let me know if this resolves your issue.

behappiest commented 4 years ago

Hi @digitallysavvy I tried your solution and its working, Thanks for your support.