This sample demonstrates operating the position and direction of a camera on another PC from the mobile device supported by AR Foundation.
Note
If no codec is available on both sender and receiver, the video can not stream. Please note that the compatibility of codecs is different corresponding to platforms and graphics API.
There are two scenes in this sample because the verified package version of AR Foundation is different depends on Unity version.
| Unity version | scene name |
|---|---|
| Unity2019.4 | ARFoundation2.1 |
| Unity2020.3 | ARFoundation4.1 |
To use this sample, You need to install additional packages shown following table.
| Unity version | Platform | packages |
|---|---|---|
| Unity2019.4 | Android, iOS | ARFoundation 2.1, XR Plugin Management 4.2 |
| Unity2020.3 | Android, iOS | ARFoundation 4.1, XR Plugin Management 4.2 |
In addition, depending on the platform, each XR plugin package must be installed.
| Unity version | Platform | packages |
|---|---|---|
| Unity2019.4 | iOS | ARKit XR Plugin 2.1 |
| Unity2019.4 | Android | ARCore XR Plugin 2.1 |
| Unity2020.3 | iOS | ARKit XR Plugin 4.1 |
| Unity2020.3 | Android | ARCore XR Plugin 4.1 |
In case of iOS, Please enable to Requires ARKit support on Player Settings. Additionally, Architecture should be selected ARM64.
Open Project Settings window and select XR Plug-in Management. Set enable ARKit option in iOS tab.
In case of Android, Target Architectures should be checked ARM64, and not checked ARMv7.
Open Project Settings window and select XR Plug-in Management. Set enable ARCore option in Android tab.
Recommend enabling Hardware Encoder support on the Render Streaming inspector to improve performance using hardware acceleration.
- Launch the signaling server using public mode. Please refer to this link for launching.
-
Build an app in Unity Editor, and launch an application on mobile device.
-
Open Menu scene in Unity Editor and click Broadcast button.
- On mobile device, configure signaling settings, and click
ARbutton.
- Push the
Startbutton on the device and check streaming video.







