The PeerCC sample application includes both Unity and XAML front ends. This document describes the process of building the sample.
Note: The Unity sample requires a full clone of the WebRTC UWP SDK due to additional dependencies on
MediaEngine
andWebRtcSchema
. The PeerCC-Sample repo does not include Unity support, though they both use the same NuGet package. The instructions below assume you have followed the instructions in the webrtc-uwp-sdk repo.
- Unity version 2018.3.6f1 with IL2CPP Scripting Backend
- Open
webrtc\windows\solutions\WebRtcUnity.sln
solution, select x86 platform and buildPeerConnectionClientUnityCore
project. The build procedure produces WebRTC libraries, WebRTC for UWP wrapper component and deploys WebRTC and Peer Connection Client Core libraries to the Unity project space. - Open the Unity project
common\windows\samples\PeerCC\ClientUnity
in Unity Editor - Go to 'File' -> 'Build settings...', select 'Universal Windows Platform', click on the 'Build' button and choose an export folder
- Add the following XML block to the generated manifest file
PeerCCUnity\Package.appxmanifest
:
<Extensions>
<Extension Category="windows.activatableClass.inProcessServer">
<InProcessServer>
<Path>WebRtcScheme.dll</Path>
<ActivatableClass ActivatableClassId="WebRtcScheme.SchemeHandler" ThreadingModel="both" />
</InProcessServer>
</Extension>
</Extensions>
- Open
PeerCCUnity.sln
from the export folder, build thePeerCCUnity
project and run the application on the device