其他语言版本: 简体中文
The Agora-Video-With-ARCore sample app is an open-source demo that will help you get live video chat integrated into your android ARCore applications using the Agora Video SDK.
With this sample app, you can:
- Send captured image from ARCore to live video channel
- Render video frames of remote user to ARCore session
First, create a developer account at Agora.io, and obtain an App ID. Update "res/string.xml" with your App ID.
Next, download the Agora Video SDK from Agora.io SDK. Unzip the downloaded SDK package and copy the agora-rtc-sdk.jar to the "Agora-ARCore/app/libs" and armeabi-v7a/libagora-rtc-sdk-jni.so to "Agora-ARCore/app/src/main/jniLibs/armeabi-v7a" folder in project.
Custom media device protocols are provided from 2.1.0
Finally, Open Agora-Video-With-ARCore using android studio, connect your android device and run.
- Move device to find a horizontal plane
- Touch the plane on screen, will add a virtual display screen
- Run OpenLive with same AppId, join "arcore" as broadcaster
- Video from remote user will be displayed on virtual screen in ARSession
- Android studio 3.0.1
- Android SDK Platform version 7.0 (API level 24) or higher.
- Real devices with ARCore supported
- You can find full API document at Document Center
- You can file bugs about this demo at issue
The MIT License (MIT).