├── .gitignore ├── Assets ├── ConversationLibrary.dll ├── Materials.meta ├── Materials │ ├── EyeEffectShader.shader │ ├── EyeEffectShader.shader.meta │ ├── EyeMaterial.mat │ ├── EyeMaterial.mat.meta │ ├── LocalVideoMaterial.mat │ ├── LocalVideoMaterial.mat.meta │ ├── RT1.renderTexture │ ├── RT1.renderTexture.meta │ ├── RT2.renderTexture │ ├── RT2.renderTexture.meta │ ├── RemoteVideoMaterial.mat │ └── RemoteVideoMaterial.mat.meta ├── Org.WebRtc.dll ├── Org.WebRtc.winmd ├── Org.WebRtc.winmd.meta ├── Plugins.meta ├── Prefabs.meta ├── Prefabs │ ├── Video.prefab │ └── Video.prefab.meta ├── Scripts.meta ├── Scripts │ ├── ControlScript.cs │ ├── ControlScript.cs.meta │ ├── DispatcherProvider.cs │ ├── DispatcherProvider.cs.meta │ ├── ITextureDetailsProvider.cs │ ├── ITextureDetailsProvider.cs.meta │ ├── MediaManager.cs │ ├── MediaManager.cs.meta │ ├── Plugin.cs │ ├── Plugin.cs.meta │ ├── TextureDetails.cs │ ├── TextureDetails.cs.meta │ ├── TextureDetailsProvider.cs │ └── TextureDetailsProvider.cs.meta ├── WSATestCertificate.pfx ├── WSATestCertificate.pfx.meta ├── WebRtcScheme.dll ├── WebRtcScheme.winmd ├── WebRtcScheme.winmd.meta ├── main.unity └── main.unity.meta ├── ConversationLibrary ├── ConversationLibrary.csproj ├── ConversationLibrary.sln ├── ConversationManager.cs ├── Interfaces │ ├── IConversationManager.cs │ ├── IDispatcherProvider.cs │ ├── IMediaManager.cs │ ├── IPeerManager.cs │ └── ISignallingService.cs ├── PeerManager.cs ├── Properties │ ├── AssemblyInfo.cs │ └── ConversationLibrary.rd.xml ├── Signalling │ ├── Signaller.cs │ └── SignallerMessagingExtensions.cs └── Utility │ ├── CheapContainer.cs │ └── SdpUtility.cs ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── WebRTCTest.Player.csproj ├── WebRTCTest.csproj ├── WebRTCTest.sln ├── web-rtc-test-latest.csproj ├── web-rtc-test-latest.sln ├── web-rtc-test.csproj └── web-rtc-test.sln /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | Temp/ 6 | Library/ 7 | [Bb]uilds/ 8 | UWP/ 9 | UnityPackageManager/ 10 | Assets/MixedRealityToolkit/ 11 | 12 | # User-specific files 13 | *.suo 14 | *.user 15 | *.userosscache 16 | *.sln.docstates 17 | *.sln 18 | *.csproj 19 | 20 | 21 | # User-specific files (MonoDevelop/Xamarin Studio) 22 | *.userprefs 23 | 24 | # Build results 25 | [Dd]ebug/ 26 | [Dd]ebugPublic/ 27 | [Rr]elease/ 28 | [Rr]eleases/ 29 | x64/ 30 | x86/ 31 | bld/ 32 | [Bb]in/ 33 | [Oo]bj/ 34 | [Ll]og/ 35 | 36 | # Visual Studio 2015 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # MSTest test Results 42 | [Tt]est[Rr]esult*/ 43 | [Bb]uild[Ll]og.* 44 | 45 | # NUNIT 46 | *.VisualState.xml 47 | TestResult.xml 48 | 49 | # Build Results of an ATL Project 50 | [Dd]ebugPS/ 51 | [Rr]eleasePS/ 52 | dlldata.c 53 | 54 | # Benchmark Results 55 | BenchmarkDotNet.Artifacts/ 56 | 57 | # .NET Core 58 | project.lock.json 59 | project.fragment.lock.json 60 | artifacts/ 61 | **/Properties/launchSettings.json 62 | 63 | *_i.c 64 | *_p.c 65 | *_i.h 66 | *.ilk 67 | *.obj 68 | *.pch 69 | *.pdb 70 | *.pgc 71 | *.pgd 72 | *.rsp 73 | *.sbr 74 | *.tlb 75 | *.tli 76 | *.tlh 77 | *.tmp 78 | *.tmp_proj 79 | *.log 80 | *.vspscc 81 | *.vssscc 82 | .builds 83 | *.pidb 84 | *.svclog 85 | *.scc 86 | *.dll* 87 | *.pdb* 88 | 89 | # Chutzpah Test files 90 | _Chutzpah* 91 | 92 | # Visual C++ cache files 93 | ipch/ 94 | *.aps 95 | *.ncb 96 | *.opendb 97 | *.opensdf 98 | *.sdf 99 | *.cachefile 100 | *.VC.db 101 | *.VC.VC.opendb 102 | 103 | # Visual Studio profiler 104 | *.psess 105 | *.vsp 106 | *.vspx 107 | *.sap 108 | 109 | # TFS 2012 Local Workspace 110 | $tf/ 111 | 112 | # Guidance Automation Toolkit 113 | *.gpState 114 | 115 | # ReSharper is a .NET coding add-in 116 | _ReSharper*/ 117 | *.[Rr]e[Ss]harper 118 | *.DotSettings.user 119 | 120 | # JustCode is a .NET coding add-in 121 | .JustCode 122 | 123 | # TeamCity is a build add-in 124 | _TeamCity* 125 | 126 | # DotCover is a Code Coverage Tool 127 | *.dotCover 128 | 129 | # Visual Studio code coverage results 130 | *.coverage 131 | *.coveragexml 132 | 133 | # Click-Once directory 134 | publish/ 135 | 136 | # NuGet Packages 137 | *.nupkg 138 | # The packages folder can be ignored because of Package Restore 139 | **/packages/* 140 | # except build/, which is used as an MSBuild target. 141 | !**/packages/build/ 142 | # Uncomment if necessary however generally it will be regenerated when needed 143 | #!**/packages/repositories.config 144 | # NuGet v3's project.json files produces more ignorable files 145 | *.nuget.props 146 | *.nuget.targets 147 | 148 | # Windows Store app package directories and files 149 | AppPackages/ 150 | BundleArtifacts/ 151 | Package.StoreAssociation.xml 152 | _pkginfo.txt 153 | *.appx 154 | 155 | # Visual Studio cache files 156 | # files ending in .cache can be ignored 157 | *.[Cc]ache 158 | # but keep track of directories ending in .cache 159 | !*.[Cc]ache/ -------------------------------------------------------------------------------- /Assets/ConversationLibrary.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peted70/web-rtc-test/d8f451516bef5ceeb2ba6dbabdb913aa8eb4f9b4/Assets/ConversationLibrary.dll -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ed9d154f115c0b4fb57ceada5953cc8 3 | folderAsset: yes 4 | timeCreated: 1519486244 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/EyeEffectShader.shader: -------------------------------------------------------------------------------- 1 | // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' 2 | 3 | Shader "Hidden/EyeEffectShader" 4 | { 5 | Properties 6 | { 7 | _MainTex ("Texture", 2D) = "white" {} 8 | } 9 | SubShader 10 | { 11 | // No culling or depth 12 | Cull Off ZWrite Off ZTest Always 13 | 14 | Pass 15 | { 16 | CGPROGRAM 17 | #pragma vertex vert 18 | #pragma fragment frag 19 | 20 | #include "UnityCG.cginc" 21 | 22 | struct appdata 23 | { 24 | float4 vertex : POSITION; 25 | float2 uv : TEXCOORD0; 26 | }; 27 | 28 | struct v2f 29 | { 30 | float2 uv : TEXCOORD0; 31 | float4 vertex : SV_POSITION; 32 | }; 33 | 34 | v2f vert (appdata v) 35 | { 36 | 37 | v2f o; 38 | o.vertex = UnityObjectToClipPos(v.vertex); 39 | o.uv = v.uv; 40 | o.uv.y = 1 - o.uv.y; 41 | return o; 42 | } 43 | 44 | sampler2D _MainTex; 45 | 46 | fixed4 frag (v2f i) : SV_Target 47 | { 48 | fixed4 col = tex2D(_MainTex, i.uv); 49 | // just invert the colors 50 | //col = 1 - col; 51 | return col; 52 | } 53 | ENDCG 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/Materials/EyeEffectShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7188654080332d40b47c1a4853680ad 3 | timeCreated: 1519834729 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/EyeMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: EyeMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Materials/EyeMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fafb4578514f7c41b4ccc9cdd24c4cc 3 | timeCreated: 1519834729 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/LocalVideoMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: LocalVideoMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 8400000, guid: 2227f3089b30697489fff5847edbc5a4, type: 2} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Materials/LocalVideoMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a31fd9229a37fbe469cdd179a92f72dc 3 | timeCreated: 1520333072 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/RT1.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RT1 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_ForcedFallbackFormat: 4 13 | m_DownscaleFallback: 0 14 | m_Width: 1280 15 | m_Height: 720 16 | m_AntiAliasing: 1 17 | m_DepthFormat: 2 18 | m_ColorFormat: 0 19 | m_MipMap: 0 20 | m_GenerateMips: 1 21 | m_SRGB: 0 22 | m_UseDynamicScale: 0 23 | m_BindMS: 0 24 | m_TextureSettings: 25 | serializedVersion: 2 26 | m_FilterMode: 1 27 | m_Aniso: 0 28 | m_MipBias: 0 29 | m_WrapU: 1 30 | m_WrapV: 1 31 | m_WrapW: 1 32 | m_Dimension: 2 33 | m_VolumeDepth: 1 34 | -------------------------------------------------------------------------------- /Assets/Materials/RT1.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2227f3089b30697489fff5847edbc5a4 3 | timeCreated: 1520333072 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/RT2.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RT2 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_ForcedFallbackFormat: 4 13 | m_DownscaleFallback: 0 14 | m_Width: 1280 15 | m_Height: 720 16 | m_AntiAliasing: 1 17 | m_DepthFormat: 2 18 | m_ColorFormat: 0 19 | m_MipMap: 0 20 | m_GenerateMips: 1 21 | m_SRGB: 0 22 | m_UseDynamicScale: 0 23 | m_BindMS: 0 24 | m_TextureSettings: 25 | serializedVersion: 2 26 | m_FilterMode: 1 27 | m_Aniso: 0 28 | m_MipBias: 0 29 | m_WrapU: 1 30 | m_WrapV: 1 31 | m_WrapW: 1 32 | m_Dimension: 2 33 | m_VolumeDepth: 1 34 | -------------------------------------------------------------------------------- /Assets/Materials/RT2.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5fdfbb4590cfed49b6240523b2512f3 3 | timeCreated: 1520333072 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/RemoteVideoMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: RemoteVideoMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 8400000, guid: a5fdfbb4590cfed49b6240523b2512f3, type: 2} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Materials/RemoteVideoMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70070884010478942b826aa2f7e26afe 3 | timeCreated: 1520333072 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Org.WebRtc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peted70/web-rtc-test/d8f451516bef5ceeb2ba6dbabdb913aa8eb4f9b4/Assets/Org.WebRtc.dll -------------------------------------------------------------------------------- /Assets/Org.WebRtc.winmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peted70/web-rtc-test/d8f451516bef5ceeb2ba6dbabdb913aa8eb4f9b4/Assets/Org.WebRtc.winmd -------------------------------------------------------------------------------- /Assets/Org.WebRtc.winmd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44d00084af46ca1409680406466b6862 3 | timeCreated: 1519840586 4 | licenseType: Pro 5 | PluginImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | - first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Editor: 1 19 | Exclude Linux: 1 20 | Exclude Linux64: 1 21 | Exclude LinuxUniversal: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude WindowsStoreApps: 0 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: AnyCPU 37 | DefaultValueInitialized: true 38 | OS: AnyOS 39 | - first: 40 | Facebook: Win 41 | second: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | - first: 46 | Facebook: Win64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Standalone: Linux 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: x86 57 | - first: 58 | Standalone: Linux64 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86_64 63 | - first: 64 | Standalone: LinuxUniversal 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | Standalone: OSXUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: AnyCPU 75 | - first: 76 | Standalone: Win 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: AnyCPU 81 | - first: 82 | Standalone: Win64 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: AnyCPU 87 | - first: 88 | Windows Store Apps: WindowsStoreApps 89 | second: 90 | enabled: 1 91 | settings: 92 | CPU: AnyCPU 93 | DontProcess: True 94 | PlaceholderPath: 95 | SDK: UWP 96 | ScriptingBackend: DotNet 97 | - first: 98 | XboxOne: XboxOne 99 | second: 100 | enabled: 1 101 | settings: {} 102 | userData: 103 | assetBundleName: 104 | assetBundleVariant: 105 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7816060ba208f1b4eb10071d01499f34 3 | folderAsset: yes 4 | timeCreated: 1521022586 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ef2b4e1db60288438c19c07752b36b0 3 | folderAsset: yes 4 | timeCreated: 1520333329 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Prefabs/Video.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_ParentPrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1321458057639926} 13 | m_IsPrefabParent: 1 14 | --- !u!1 &1321458057639926 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_PrefabParentObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 5 20 | m_Component: 21 | - component: {fileID: 4928949237914088} 22 | m_Layer: 0 23 | m_Name: Video 24 | m_TagString: Untagged 25 | m_Icon: {fileID: 0} 26 | m_NavMeshLayer: 0 27 | m_StaticEditorFlags: 0 28 | m_IsActive: 1 29 | --- !u!1 &1553571397241330 30 | GameObject: 31 | m_ObjectHideFlags: 0 32 | m_PrefabParentObject: {fileID: 0} 33 | m_PrefabInternal: {fileID: 100100000} 34 | serializedVersion: 5 35 | m_Component: 36 | - component: {fileID: 4160907448231092} 37 | - component: {fileID: 33141805602743476} 38 | - component: {fileID: 64844132607108540} 39 | - component: {fileID: 23526646393759442} 40 | m_Layer: 0 41 | m_Name: Remote Video 42 | m_TagString: Untagged 43 | m_Icon: {fileID: 0} 44 | m_NavMeshLayer: 0 45 | m_StaticEditorFlags: 0 46 | m_IsActive: 1 47 | --- !u!1 &1689054613996480 48 | GameObject: 49 | m_ObjectHideFlags: 0 50 | m_PrefabParentObject: {fileID: 0} 51 | m_PrefabInternal: {fileID: 100100000} 52 | serializedVersion: 5 53 | m_Component: 54 | - component: {fileID: 4253402676573116} 55 | - component: {fileID: 33372271351574708} 56 | - component: {fileID: 64153639681434910} 57 | - component: {fileID: 23640575991075808} 58 | m_Layer: 0 59 | m_Name: LocalVideo 60 | m_TagString: Untagged 61 | m_Icon: {fileID: 0} 62 | m_NavMeshLayer: 0 63 | m_StaticEditorFlags: 0 64 | m_IsActive: 1 65 | --- !u!4 &4160907448231092 66 | Transform: 67 | m_ObjectHideFlags: 1 68 | m_PrefabParentObject: {fileID: 0} 69 | m_PrefabInternal: {fileID: 100100000} 70 | m_GameObject: {fileID: 1553571397241330} 71 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 72 | m_LocalPosition: {x: -12.6, y: 0, z: 0} 73 | m_LocalScale: {x: 1.7777, y: 1, z: 1} 74 | m_Children: [] 75 | m_Father: {fileID: 4928949237914088} 76 | m_RootOrder: 1 77 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 78 | --- !u!4 &4253402676573116 79 | Transform: 80 | m_ObjectHideFlags: 1 81 | m_PrefabParentObject: {fileID: 0} 82 | m_PrefabInternal: {fileID: 100100000} 83 | m_GameObject: {fileID: 1689054613996480} 84 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 85 | m_LocalPosition: {x: 10, y: 0, z: 0} 86 | m_LocalScale: {x: 1.7777, y: 1, z: 1} 87 | m_Children: [] 88 | m_Father: {fileID: 4928949237914088} 89 | m_RootOrder: 0 90 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 91 | --- !u!4 &4928949237914088 92 | Transform: 93 | m_ObjectHideFlags: 1 94 | m_PrefabParentObject: {fileID: 0} 95 | m_PrefabInternal: {fileID: 100100000} 96 | m_GameObject: {fileID: 1321458057639926} 97 | m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} 98 | m_LocalPosition: {x: 0, y: 0, z: 0} 99 | m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} 100 | m_Children: 101 | - {fileID: 4253402676573116} 102 | - {fileID: 4160907448231092} 103 | m_Father: {fileID: 0} 104 | m_RootOrder: 0 105 | m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} 106 | --- !u!23 &23526646393759442 107 | MeshRenderer: 108 | m_ObjectHideFlags: 1 109 | m_PrefabParentObject: {fileID: 0} 110 | m_PrefabInternal: {fileID: 100100000} 111 | m_GameObject: {fileID: 1553571397241330} 112 | m_Enabled: 1 113 | m_CastShadows: 1 114 | m_ReceiveShadows: 1 115 | m_DynamicOccludee: 1 116 | m_MotionVectors: 1 117 | m_LightProbeUsage: 1 118 | m_ReflectionProbeUsage: 1 119 | m_Materials: 120 | - {fileID: 2100000, guid: 70070884010478942b826aa2f7e26afe, type: 2} 121 | m_StaticBatchInfo: 122 | firstSubMesh: 0 123 | subMeshCount: 0 124 | m_StaticBatchRoot: {fileID: 0} 125 | m_ProbeAnchor: {fileID: 0} 126 | m_LightProbeVolumeOverride: {fileID: 0} 127 | m_ScaleInLightmap: 1 128 | m_PreserveUVs: 1 129 | m_IgnoreNormalsForChartDetection: 0 130 | m_ImportantGI: 0 131 | m_StitchLightmapSeams: 0 132 | m_SelectedEditorRenderState: 3 133 | m_MinimumChartSize: 4 134 | m_AutoUVMaxDistance: 0.5 135 | m_AutoUVMaxAngle: 89 136 | m_LightmapParameters: {fileID: 0} 137 | m_SortingLayerID: 0 138 | m_SortingLayer: 0 139 | m_SortingOrder: 0 140 | --- !u!23 &23640575991075808 141 | MeshRenderer: 142 | m_ObjectHideFlags: 1 143 | m_PrefabParentObject: {fileID: 0} 144 | m_PrefabInternal: {fileID: 100100000} 145 | m_GameObject: {fileID: 1689054613996480} 146 | m_Enabled: 1 147 | m_CastShadows: 1 148 | m_ReceiveShadows: 1 149 | m_DynamicOccludee: 1 150 | m_MotionVectors: 1 151 | m_LightProbeUsage: 1 152 | m_ReflectionProbeUsage: 1 153 | m_Materials: 154 | - {fileID: 2100000, guid: a31fd9229a37fbe469cdd179a92f72dc, type: 2} 155 | m_StaticBatchInfo: 156 | firstSubMesh: 0 157 | subMeshCount: 0 158 | m_StaticBatchRoot: {fileID: 0} 159 | m_ProbeAnchor: {fileID: 0} 160 | m_LightProbeVolumeOverride: {fileID: 0} 161 | m_ScaleInLightmap: 1 162 | m_PreserveUVs: 1 163 | m_IgnoreNormalsForChartDetection: 0 164 | m_ImportantGI: 0 165 | m_StitchLightmapSeams: 0 166 | m_SelectedEditorRenderState: 3 167 | m_MinimumChartSize: 4 168 | m_AutoUVMaxDistance: 0.5 169 | m_AutoUVMaxAngle: 89 170 | m_LightmapParameters: {fileID: 0} 171 | m_SortingLayerID: 0 172 | m_SortingLayer: 0 173 | m_SortingOrder: 0 174 | --- !u!33 &33141805602743476 175 | MeshFilter: 176 | m_ObjectHideFlags: 1 177 | m_PrefabParentObject: {fileID: 0} 178 | m_PrefabInternal: {fileID: 100100000} 179 | m_GameObject: {fileID: 1553571397241330} 180 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 181 | --- !u!33 &33372271351574708 182 | MeshFilter: 183 | m_ObjectHideFlags: 1 184 | m_PrefabParentObject: {fileID: 0} 185 | m_PrefabInternal: {fileID: 100100000} 186 | m_GameObject: {fileID: 1689054613996480} 187 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 188 | --- !u!64 &64153639681434910 189 | MeshCollider: 190 | m_ObjectHideFlags: 1 191 | m_PrefabParentObject: {fileID: 0} 192 | m_PrefabInternal: {fileID: 100100000} 193 | m_GameObject: {fileID: 1689054613996480} 194 | m_Material: {fileID: 0} 195 | m_IsTrigger: 0 196 | m_Enabled: 1 197 | serializedVersion: 3 198 | m_Convex: 0 199 | m_CookingOptions: 14 200 | m_SkinWidth: 0.01 201 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 202 | --- !u!64 &64844132607108540 203 | MeshCollider: 204 | m_ObjectHideFlags: 1 205 | m_PrefabParentObject: {fileID: 0} 206 | m_PrefabInternal: {fileID: 100100000} 207 | m_GameObject: {fileID: 1553571397241330} 208 | m_Material: {fileID: 0} 209 | m_IsTrigger: 0 210 | m_Enabled: 1 211 | serializedVersion: 3 212 | m_Convex: 0 213 | m_CookingOptions: 14 214 | m_SkinWidth: 0.01 215 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 216 | -------------------------------------------------------------------------------- /Assets/Prefabs/Video.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f98fe6b4190af84d8ff934ceea0e3ec 3 | timeCreated: 1520334690 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7978e43fc15fce74590b7b8cc77e872b 3 | folderAsset: yes 4 | timeCreated: 1520332628 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/ControlScript.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | #if ENABLE_WINMD_SUPPORT 7 | using ConversationLibrary; 8 | using ConversationLibrary.Interfaces; 9 | using ConversationLibrary.Utility; 10 | using PeerConnectionClient.Signalling; 11 | using Org.WebRtc; 12 | using Windows.Networking.Connectivity; 13 | #endif 14 | 15 | public class ControlScript : MonoBehaviour 16 | { 17 | public TextureDetails TextureDetails; 18 | public string ServerIP = "52.174.16.92"; 19 | public int PortNumber = 8888; 20 | public bool IsInitiator = true; 21 | public string remotePeerName = "mtaultybook"; 22 | 23 | #if ENABLE_WINMD_SUPPORT 24 | async void Start() 25 | { 26 | CheapContainer.Register(); 27 | CheapContainer.Register(); 28 | CheapContainer.Register(); 29 | 30 | var provider = CheapContainer.Resolve(); 31 | provider.Details = this.TextureDetails; 32 | 33 | CheapContainer.Register(); 34 | CheapContainer.Register(); 35 | CheapContainer.Register(); 36 | 37 | var conversationManager = CheapContainer.Resolve(); 38 | conversationManager.IsInitiator = this.IsInitiator; 39 | 40 | // TODO: not really found a good way of abstracting this but I think it has to be called. 41 | // Does it need moving into the Media Manager and linking to the widths/heights in there? 42 | // I think I ramped it down to 856? 896? some such. 43 | WebRTC.SetPreferredVideoCaptureFormat(896, 504, 30); 44 | 45 | // TODO: This is here right now as it feels like a bunch of work gets marshalled 46 | // back (via Sync Context?) to this thread which then gums up the UI but we'd 47 | // like to understand better what that work is. 48 | Task.Run( 49 | async () => 50 | { 51 | await conversationManager.InitialiseAsync(this.HostName, this.remotePeerName); 52 | 53 | if (await conversationManager.ConnectToSignallingAsync(this.ServerIP, this.PortNumber, 54 | "H264", 90000)) 55 | { 56 | // We're good! 57 | } 58 | } 59 | ); 60 | } 61 | string HostName 62 | { 63 | get 64 | { 65 | var candidate = 66 | NetworkInformation.GetHostNames() 67 | .Where(n => !string.IsNullOrEmpty(n.DisplayName)).FirstOrDefault(); 68 | 69 | // Note - only candidate below can be null, not the Displayname 70 | return (candidate?.DisplayName ?? "Anonymous"); 71 | } 72 | } 73 | #endif 74 | } 75 | -------------------------------------------------------------------------------- /Assets/Scripts/ControlScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cdc06078e5ecfc4a8c68ceaff6adfbe 3 | timeCreated: 1519663062 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/DispatcherProvider.cs: -------------------------------------------------------------------------------- 1 |  2 | #if ENABLE_WINMD_SUPPORT 3 | using System; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | using ConversationLibrary.Interfaces; 8 | using Windows.UI.Core; 9 | using System.ComponentModel; 10 | 11 | public class DispatcherProvider : IDispatcherProvider 12 | { 13 | public CoreDispatcher Dispatcher 14 | { 15 | get => Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher; 16 | set => throw new NotImplementedException(); 17 | } 18 | public event PropertyChangedEventHandler PropertyChanged; 19 | } 20 | #endif -------------------------------------------------------------------------------- /Assets/Scripts/DispatcherProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebcafc99421d1554e8c16e434f5b328f 3 | timeCreated: 1520350394 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/ITextureDetailsProvider.cs: -------------------------------------------------------------------------------- 1 |  2 | public interface ITextureDetailsProvider 3 | { 4 | TextureDetails Details { get; set; } 5 | } 6 | -------------------------------------------------------------------------------- /Assets/Scripts/ITextureDetailsProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 228520e61691b714ea40d2f598082666 3 | timeCreated: 1520355773 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/MediaManager.cs: -------------------------------------------------------------------------------- 1 | #if ENABLE_WINMD_SUPPORT 2 | 3 | using ConversationLibrary.Interfaces; 4 | using ConversationLibrary.Utility; 5 | using Org.WebRtc; 6 | using System; 7 | using System.Linq; 8 | using System.Threading.Tasks; 9 | using UnityEngine; 10 | using UnityEngine.WSA; 11 | using Windows.Media.Core; 12 | 13 | public class MediaManager : IMediaManager 14 | { 15 | // This constructor will be used by the cheap IoC container 16 | public MediaManager() 17 | { 18 | this.textureDetails = CheapContainer.Resolve(); 19 | } 20 | // The idea is that this constructor would be used by a real IoC container. 21 | public MediaManager(ITextureDetailsProvider textureDetails) 22 | { 23 | this.textureDetails = textureDetails; 24 | } 25 | public Media Media => this.media; 26 | 27 | public MediaStream UserMedia => this.userMedia; 28 | 29 | public MediaVideoTrack RemoteVideoTrack { get => remoteVideoTrack; set => remoteVideoTrack = value; } 30 | 31 | public async Task AddLocalStreamAsync(MediaStream stream) 32 | { 33 | var track = stream?.GetVideoTracks()?.FirstOrDefault(); 34 | 35 | if (track != null) 36 | { 37 | // TODO: stop hardcoding I420?. 38 | this.InvokeOnUnityMainThread( 39 | () => this.CreateLocalMediaStreamSource(track, LOCAL_VIDEO_FRAME_FORMAT, "SELF")); 40 | } 41 | } 42 | 43 | public async Task AddRemoteStreamAsync(MediaStream stream) 44 | { 45 | var track = stream?.GetVideoTracks()?.FirstOrDefault(); 46 | 47 | if (track != null) 48 | { 49 | // TODO: stop hardcoding I420?. 50 | this.InvokeOnUnityMainThread( 51 | () => this.CreateRemoteMediaStreamSource(track, REMOTE_VIDEO_FRAME_FORMAT, "PEER")); 52 | } 53 | } 54 | void InvokeOnUnityMainThread(AppCallbackItem callback) 55 | { 56 | UnityEngine.WSA.Application.InvokeOnAppThread(callback,false); 57 | } 58 | void InvokeOnUnityUIThread(AppCallbackItem callback) 59 | { 60 | UnityEngine.WSA.Application.InvokeOnUIThread(callback, false); 61 | } 62 | public async Task CreateAsync(bool audioEnabled = true, bool videoEnabled = true) 63 | { 64 | this.media = Media.CreateMedia(); 65 | 66 | // TODO: for the moment, turning audio off as I get an access violation in 67 | // some piece of code that'll take some debugging. 68 | RTCMediaStreamConstraints constraints = new RTCMediaStreamConstraints() 69 | { 70 | // TODO: switch audio back on, fix the crash. 71 | audioEnabled = false, 72 | videoEnabled = videoEnabled 73 | }; 74 | this.userMedia = await media.GetUserMedia(constraints); 75 | } 76 | 77 | public void RemoveLocalStream() 78 | { 79 | // TODO: is this ever getting called? 80 | this.InvokeOnUnityMainThread( 81 | () => this.DestroyLocalMediaStreamSource()); 82 | } 83 | 84 | public void RemoveRemoteStream() 85 | { 86 | this.DestroyRemoteMediaStreamSource(); 87 | } 88 | 89 | public void Shutdown() 90 | { 91 | if (this.media != null) 92 | { 93 | if (this.localVideoTrack != null) 94 | { 95 | this.localVideoTrack.Dispose(); 96 | this.localVideoTrack = null; 97 | } 98 | if (this.RemoteVideoTrack != null) 99 | { 100 | this.RemoteVideoTrack.Dispose(); 101 | this.RemoteVideoTrack = null; 102 | } 103 | this.userMedia = null; 104 | this.media.Dispose(); 105 | this.media = null; 106 | } 107 | } 108 | void CreateLocalMediaStreamSource(object track, string type, string id) 109 | { 110 | Plugin.CreateLocalMediaPlayback(); 111 | IntPtr playbackTexture = IntPtr.Zero; 112 | Plugin.GetLocalPrimaryTexture( 113 | this.textureDetails.Details.LocalTextureWidth, 114 | this.textureDetails.Details.LocalTextureHeight, 115 | out playbackTexture); 116 | 117 | this.textureDetails.Details.LocalTexture.GetComponent().sharedMaterial.mainTexture = 118 | (Texture)Texture2D.CreateExternalTexture( 119 | (int)this.textureDetails.Details.LocalTextureWidth, 120 | (int)this.textureDetails.Details.LocalTextureHeight, 121 | (TextureFormat)14, false, false, playbackTexture); 122 | 123 | #if ENABLE_WINMD_SUPPORT 124 | Plugin.LoadLocalMediaStreamSource( 125 | (MediaStreamSource)Org.WebRtc.Media.CreateMedia().CreateMediaStreamSource((MediaVideoTrack)track, type, id)); 126 | #endif 127 | Plugin.LocalPlay(); 128 | } 129 | 130 | void DestroyLocalMediaStreamSource() 131 | { 132 | this.textureDetails.Details.LocalTexture.GetComponent().sharedMaterial.mainTexture = null; 133 | Plugin.ReleaseLocalMediaPlayback(); 134 | } 135 | 136 | void CreateRemoteMediaStreamSource(object track, string type, string id) 137 | { 138 | Plugin.CreateRemoteMediaPlayback(); 139 | 140 | IntPtr playbackTexture = IntPtr.Zero; 141 | 142 | Plugin.GetRemotePrimaryTexture( 143 | this.textureDetails.Details.RemoteTextureWidth, 144 | this.textureDetails.Details.RemoteTextureHeight, 145 | out playbackTexture); 146 | 147 | // NB: creating textures and calling GetComponent<> has thread affinity for Unity 148 | // in so far as I can tell. 149 | var texture = (Texture)Texture2D.CreateExternalTexture( 150 | (int)this.textureDetails.Details.RemoteTextureWidth, 151 | (int)this.textureDetails.Details.RemoteTextureHeight, 152 | (TextureFormat)14, false, false, playbackTexture); 153 | 154 | this.textureDetails.Details.RemoteTexture.GetComponent().sharedMaterial.mainTexture = texture; 155 | 156 | #if ENABLE_WINMD_SUPPORT 157 | Plugin.LoadRemoteMediaStreamSource( 158 | (MediaStreamSource)Org.WebRtc.Media.CreateMedia().CreateMediaStreamSource((MediaVideoTrack)track, type, id)); 159 | #endif 160 | Plugin.RemotePlay(); 161 | } 162 | 163 | void DestroyRemoteMediaStreamSource() 164 | { 165 | this.textureDetails.Details.RemoteTexture.GetComponent().sharedMaterial.mainTexture = null; 166 | Plugin.ReleaseRemoteMediaPlayback(); 167 | } 168 | Media media; 169 | MediaStream userMedia; 170 | MediaVideoTrack remoteVideoTrack; 171 | MediaVideoTrack localVideoTrack; 172 | ITextureDetailsProvider textureDetails; 173 | 174 | // TODO: temporary hard coding... 175 | static readonly string LOCAL_VIDEO_FRAME_FORMAT = "I420"; 176 | static readonly string REMOTE_VIDEO_FRAME_FORMAT = "H264"; 177 | } 178 | #endif 179 | -------------------------------------------------------------------------------- /Assets/Scripts/MediaManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17ebde18c46c22a419ecf44d7a32154b 3 | timeCreated: 1520350400 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Plugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | #if ENABLE_WINMD_SUPPORT 5 | using Org.WebRtc; 6 | using Windows.Media.Core; 7 | #endif 8 | 9 | static class Plugin 10 | { 11 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 12 | internal static extern void CreateLocalMediaPlayback(); 13 | 14 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 15 | internal static extern void CreateRemoteMediaPlayback(); 16 | 17 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 18 | internal static extern void ReleaseLocalMediaPlayback(); 19 | 20 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 21 | internal static extern void ReleaseRemoteMediaPlayback(); 22 | 23 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 24 | internal static extern void GetLocalPrimaryTexture(uint width, uint height, out IntPtr playbackTexture); 25 | 26 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 27 | internal static extern void GetRemotePrimaryTexture(uint width, uint height, out IntPtr playbackTexture); 28 | 29 | #if ENABLE_WINMD_SUPPORT 30 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 31 | internal static extern void LoadLocalMediaStreamSource(MediaStreamSource IMediaSourceHandler); 32 | 33 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 34 | internal static extern void LoadRemoteMediaStreamSource(MediaStreamSource IMediaSourceHandler); 35 | #endif 36 | 37 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 38 | internal static extern void LocalPlay(); 39 | 40 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 41 | internal static extern void RemotePlay(); 42 | 43 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 44 | internal static extern void LocalPause(); 45 | 46 | [DllImport("MediaEngineUWP", CallingConvention = CallingConvention.StdCall)] 47 | internal static extern void RemotePause(); 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Scripts/Plugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bc2c3ea138a738499a2495a8dc2849d 3 | timeCreated: 1520351240 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/TextureDetails.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | [Serializable] 6 | public class TextureDetails 7 | { 8 | public uint LocalTextureWidth; 9 | public uint LocalTextureHeight; 10 | public uint RemoteTextureWidth; 11 | public uint RemoteTextureHeight; 12 | public GameObject RemoteTexture; 13 | public GameObject LocalTexture; 14 | } -------------------------------------------------------------------------------- /Assets/Scripts/TextureDetails.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b4411c2aac2a4d4294962c31f7f68f4 3 | timeCreated: 1520351795 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/TextureDetailsProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | public class TextureDetailsProvider : ITextureDetailsProvider 3 | { 4 | public TextureDetailsProvider() 5 | { 6 | 7 | } 8 | public TextureDetails Details { get; set; } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/TextureDetailsProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 992a800eb84fcd249969de8ff9227e77 3 | timeCreated: 1520355774 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peted70/web-rtc-test/d8f451516bef5ceeb2ba6dbabdb913aa8eb4f9b4/Assets/WSATestCertificate.pfx -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18eb5f6dd8fb20549a5c9adb1d898ee4 3 | timeCreated: 1519330649 4 | licenseType: Pro 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/WebRtcScheme.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peted70/web-rtc-test/d8f451516bef5ceeb2ba6dbabdb913aa8eb4f9b4/Assets/WebRtcScheme.dll -------------------------------------------------------------------------------- /Assets/WebRtcScheme.winmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peted70/web-rtc-test/d8f451516bef5ceeb2ba6dbabdb913aa8eb4f9b4/Assets/WebRtcScheme.winmd -------------------------------------------------------------------------------- /Assets/WebRtcScheme.winmd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c686708f832b03949a98bd4eb06f686d 3 | timeCreated: 1521036814 4 | licenseType: Pro 5 | PluginImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | - first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Editor: 1 19 | Exclude Linux: 1 20 | Exclude Linux64: 1 21 | Exclude LinuxUniversal: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude WindowsStoreApps: 0 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: AnyCPU 37 | DefaultValueInitialized: true 38 | OS: AnyOS 39 | - first: 40 | Facebook: Win 41 | second: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | - first: 46 | Facebook: Win64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Standalone: Linux 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: x86 57 | - first: 58 | Standalone: Linux64 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86_64 63 | - first: 64 | Standalone: OSXUniversal 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: AnyCPU 69 | - first: 70 | Standalone: Win 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: AnyCPU 75 | - first: 76 | Standalone: Win64 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: AnyCPU 81 | - first: 82 | Windows Store Apps: WindowsStoreApps 83 | second: 84 | enabled: 1 85 | settings: 86 | CPU: AnyCPU 87 | DontProcess: True 88 | PlaceholderPath: 89 | SDK: UWP 90 | ScriptingBackend: DotNet 91 | - first: 92 | XboxOne: XboxOne 93 | second: 94 | enabled: 1 95 | settings: {} 96 | userData: 97 | assetBundleName: 98 | assetBundleVariant: 99 | -------------------------------------------------------------------------------- /Assets/main.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657826, g: 0.49641263, b: 0.57481676, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 0 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &203441517 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_PrefabParentObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 5 122 | m_Component: 123 | - component: {fileID: 203441518} 124 | m_Layer: 0 125 | m_Name: HologramCollection 126 | m_TagString: Untagged 127 | m_Icon: {fileID: 0} 128 | m_NavMeshLayer: 0 129 | m_StaticEditorFlags: 0 130 | m_IsActive: 1 131 | --- !u!4 &203441518 132 | Transform: 133 | m_ObjectHideFlags: 0 134 | m_PrefabParentObject: {fileID: 0} 135 | m_PrefabInternal: {fileID: 0} 136 | m_GameObject: {fileID: 203441517} 137 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 138 | m_LocalPosition: {x: 0, y: 0, z: 10} 139 | m_LocalScale: {x: 1, y: 1, z: 1} 140 | m_Children: 141 | - {fileID: 1027309293} 142 | m_Father: {fileID: 0} 143 | m_RootOrder: 4 144 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 145 | --- !u!1 &862843985 146 | GameObject: 147 | m_ObjectHideFlags: 0 148 | m_PrefabParentObject: {fileID: 0} 149 | m_PrefabInternal: {fileID: 0} 150 | serializedVersion: 5 151 | m_Component: 152 | - component: {fileID: 862843989} 153 | - component: {fileID: 862843988} 154 | - component: {fileID: 862843987} 155 | - component: {fileID: 862843986} 156 | m_Layer: 0 157 | m_Name: Main Camera 158 | m_TagString: Untagged 159 | m_Icon: {fileID: 0} 160 | m_NavMeshLayer: 0 161 | m_StaticEditorFlags: 0 162 | m_IsActive: 1 163 | --- !u!81 &862843986 164 | AudioListener: 165 | m_ObjectHideFlags: 0 166 | m_PrefabParentObject: {fileID: 0} 167 | m_PrefabInternal: {fileID: 0} 168 | m_GameObject: {fileID: 862843985} 169 | m_Enabled: 1 170 | --- !u!124 &862843987 171 | Behaviour: 172 | m_ObjectHideFlags: 0 173 | m_PrefabParentObject: {fileID: 0} 174 | m_PrefabInternal: {fileID: 0} 175 | m_GameObject: {fileID: 862843985} 176 | m_Enabled: 1 177 | --- !u!20 &862843988 178 | Camera: 179 | m_ObjectHideFlags: 0 180 | m_PrefabParentObject: {fileID: 0} 181 | m_PrefabInternal: {fileID: 0} 182 | m_GameObject: {fileID: 862843985} 183 | m_Enabled: 1 184 | serializedVersion: 2 185 | m_ClearFlags: 2 186 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} 187 | m_NormalizedViewPortRect: 188 | serializedVersion: 2 189 | x: 0 190 | y: 0 191 | width: 1 192 | height: 1 193 | near clip plane: 0.8 194 | far clip plane: 1000 195 | field of view: 60 196 | orthographic: 0 197 | orthographic size: 5 198 | m_Depth: 0 199 | m_CullingMask: 200 | serializedVersion: 2 201 | m_Bits: 4294967295 202 | m_RenderingPath: -1 203 | m_TargetTexture: {fileID: 0} 204 | m_TargetDisplay: 0 205 | m_TargetEye: 3 206 | m_HDR: 1 207 | m_AllowMSAA: 1 208 | m_AllowDynamicResolution: 0 209 | m_ForceIntoRT: 0 210 | m_OcclusionCulling: 1 211 | m_StereoConvergence: 10 212 | m_StereoSeparation: 0.022 213 | --- !u!4 &862843989 214 | Transform: 215 | m_ObjectHideFlags: 0 216 | m_PrefabParentObject: {fileID: 0} 217 | m_PrefabInternal: {fileID: 0} 218 | m_GameObject: {fileID: 862843985} 219 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 220 | m_LocalPosition: {x: -0, y: 0, z: 0} 221 | m_LocalScale: {x: 1, y: 1, z: 1} 222 | m_Children: [] 223 | m_Father: {fileID: 0} 224 | m_RootOrder: 0 225 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 226 | --- !u!1001 &1027309292 227 | Prefab: 228 | m_ObjectHideFlags: 0 229 | serializedVersion: 2 230 | m_Modification: 231 | m_TransformParent: {fileID: 203441518} 232 | m_Modifications: 233 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 234 | propertyPath: m_LocalPosition.x 235 | value: 0 236 | objectReference: {fileID: 0} 237 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 238 | propertyPath: m_LocalPosition.y 239 | value: 0 240 | objectReference: {fileID: 0} 241 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 242 | propertyPath: m_LocalPosition.z 243 | value: 0 244 | objectReference: {fileID: 0} 245 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 246 | propertyPath: m_LocalRotation.x 247 | value: -0.7071068 248 | objectReference: {fileID: 0} 249 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 250 | propertyPath: m_LocalRotation.y 251 | value: 0 252 | objectReference: {fileID: 0} 253 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 254 | propertyPath: m_LocalRotation.z 255 | value: 0 256 | objectReference: {fileID: 0} 257 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 258 | propertyPath: m_LocalRotation.w 259 | value: 0.7071068 260 | objectReference: {fileID: 0} 261 | - target: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 262 | propertyPath: m_RootOrder 263 | value: 0 264 | objectReference: {fileID: 0} 265 | - target: {fileID: 4253402676573116, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 266 | propertyPath: m_RootOrder 267 | value: 1 268 | objectReference: {fileID: 0} 269 | - target: {fileID: 4160907448231092, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 270 | propertyPath: m_RootOrder 271 | value: 0 272 | objectReference: {fileID: 0} 273 | m_RemovedComponents: [] 274 | m_ParentPrefab: {fileID: 100100000, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, type: 2} 275 | m_IsPrefabParent: 0 276 | --- !u!4 &1027309293 stripped 277 | Transform: 278 | m_PrefabParentObject: {fileID: 4928949237914088, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, 279 | type: 2} 280 | m_PrefabInternal: {fileID: 1027309292} 281 | --- !u!1 &1195169479 282 | GameObject: 283 | m_ObjectHideFlags: 0 284 | m_PrefabParentObject: {fileID: 0} 285 | m_PrefabInternal: {fileID: 0} 286 | serializedVersion: 5 287 | m_Component: 288 | - component: {fileID: 1195169482} 289 | - component: {fileID: 1195169481} 290 | - component: {fileID: 1195169480} 291 | m_Layer: 0 292 | m_Name: EventSystem 293 | m_TagString: Untagged 294 | m_Icon: {fileID: 0} 295 | m_NavMeshLayer: 0 296 | m_StaticEditorFlags: 0 297 | m_IsActive: 1 298 | --- !u!114 &1195169480 299 | MonoBehaviour: 300 | m_ObjectHideFlags: 0 301 | m_PrefabParentObject: {fileID: 0} 302 | m_PrefabInternal: {fileID: 0} 303 | m_GameObject: {fileID: 1195169479} 304 | m_Enabled: 1 305 | m_EditorHideFlags: 0 306 | m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} 307 | m_Name: 308 | m_EditorClassIdentifier: 309 | m_HorizontalAxis: Horizontal 310 | m_VerticalAxis: Vertical 311 | m_SubmitButton: Submit 312 | m_CancelButton: Cancel 313 | m_InputActionsPerSecond: 10 314 | m_RepeatDelay: 0.5 315 | m_ForceModuleActive: 0 316 | --- !u!114 &1195169481 317 | MonoBehaviour: 318 | m_ObjectHideFlags: 0 319 | m_PrefabParentObject: {fileID: 0} 320 | m_PrefabInternal: {fileID: 0} 321 | m_GameObject: {fileID: 1195169479} 322 | m_Enabled: 1 323 | m_EditorHideFlags: 0 324 | m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} 325 | m_Name: 326 | m_EditorClassIdentifier: 327 | m_FirstSelected: {fileID: 0} 328 | m_sendNavigationEvents: 1 329 | m_DragThreshold: 5 330 | --- !u!4 &1195169482 331 | Transform: 332 | m_ObjectHideFlags: 0 333 | m_PrefabParentObject: {fileID: 0} 334 | m_PrefabInternal: {fileID: 0} 335 | m_GameObject: {fileID: 1195169479} 336 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 337 | m_LocalPosition: {x: 0, y: 0, z: 0} 338 | m_LocalScale: {x: 1, y: 1, z: 1} 339 | m_Children: [] 340 | m_Father: {fileID: 0} 341 | m_RootOrder: 3 342 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 343 | --- !u!1 &1249232933 344 | GameObject: 345 | m_ObjectHideFlags: 0 346 | m_PrefabParentObject: {fileID: 0} 347 | m_PrefabInternal: {fileID: 0} 348 | serializedVersion: 5 349 | m_Component: 350 | - component: {fileID: 1249232935} 351 | - component: {fileID: 1249232934} 352 | m_Layer: 0 353 | m_Name: Directional Light 354 | m_TagString: Untagged 355 | m_Icon: {fileID: 0} 356 | m_NavMeshLayer: 0 357 | m_StaticEditorFlags: 0 358 | m_IsActive: 1 359 | --- !u!108 &1249232934 360 | Light: 361 | m_ObjectHideFlags: 0 362 | m_PrefabParentObject: {fileID: 0} 363 | m_PrefabInternal: {fileID: 0} 364 | m_GameObject: {fileID: 1249232933} 365 | m_Enabled: 1 366 | serializedVersion: 8 367 | m_Type: 1 368 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 369 | m_Intensity: 1 370 | m_Range: 10 371 | m_SpotAngle: 30 372 | m_CookieSize: 10 373 | m_Shadows: 374 | m_Type: 2 375 | m_Resolution: -1 376 | m_CustomResolution: -1 377 | m_Strength: 1 378 | m_Bias: 0.05 379 | m_NormalBias: 0.4 380 | m_NearPlane: 0.2 381 | m_Cookie: {fileID: 0} 382 | m_DrawHalo: 0 383 | m_Flare: {fileID: 0} 384 | m_RenderMode: 0 385 | m_CullingMask: 386 | serializedVersion: 2 387 | m_Bits: 4294967295 388 | m_Lightmapping: 4 389 | m_AreaSize: {x: 1, y: 1} 390 | m_BounceIntensity: 1 391 | m_ColorTemperature: 6570 392 | m_UseColorTemperature: 0 393 | m_ShadowRadius: 0 394 | m_ShadowAngle: 0 395 | --- !u!4 &1249232935 396 | Transform: 397 | m_ObjectHideFlags: 0 398 | m_PrefabParentObject: {fileID: 0} 399 | m_PrefabInternal: {fileID: 0} 400 | m_GameObject: {fileID: 1249232933} 401 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 402 | m_LocalPosition: {x: -1.38, y: 2.56, z: 2.4} 403 | m_LocalScale: {x: 1, y: 1, z: 1} 404 | m_Children: [] 405 | m_Father: {fileID: 0} 406 | m_RootOrder: 1 407 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 408 | --- !u!1 &1350761906 stripped 409 | GameObject: 410 | m_PrefabParentObject: {fileID: 1553571397241330, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, 411 | type: 2} 412 | m_PrefabInternal: {fileID: 1027309292} 413 | --- !u!1 &1882463640 414 | GameObject: 415 | m_ObjectHideFlags: 0 416 | m_PrefabParentObject: {fileID: 0} 417 | m_PrefabInternal: {fileID: 0} 418 | serializedVersion: 5 419 | m_Component: 420 | - component: {fileID: 1882463642} 421 | - component: {fileID: 1882463643} 422 | m_Layer: 0 423 | m_Name: Control 424 | m_TagString: Untagged 425 | m_Icon: {fileID: 0} 426 | m_NavMeshLayer: 0 427 | m_StaticEditorFlags: 0 428 | m_IsActive: 1 429 | --- !u!4 &1882463642 430 | Transform: 431 | m_ObjectHideFlags: 0 432 | m_PrefabParentObject: {fileID: 0} 433 | m_PrefabInternal: {fileID: 0} 434 | m_GameObject: {fileID: 1882463640} 435 | m_LocalRotation: {x: 0, y: -0.7071068, z: 0.7071068, w: 0} 436 | m_LocalPosition: {x: 0, y: 0, z: 10} 437 | m_LocalScale: {x: 1, y: 1, z: 1} 438 | m_Children: [] 439 | m_Father: {fileID: 0} 440 | m_RootOrder: 2 441 | m_LocalEulerAnglesHint: {x: 90, y: 0, z: 180} 442 | --- !u!114 &1882463643 443 | MonoBehaviour: 444 | m_ObjectHideFlags: 0 445 | m_PrefabParentObject: {fileID: 0} 446 | m_PrefabInternal: {fileID: 0} 447 | m_GameObject: {fileID: 1882463640} 448 | m_Enabled: 1 449 | m_EditorHideFlags: 0 450 | m_Script: {fileID: 11500000, guid: 7cdc06078e5ecfc4a8c68ceaff6adfbe, type: 3} 451 | m_Name: 452 | m_EditorClassIdentifier: 453 | TextureDetails: 454 | LocalTextureWidth: 640 455 | LocalTextureHeight: 480 456 | RemoteTextureWidth: 640 457 | RemoteTextureHeight: 480 458 | RemoteTexture: {fileID: 1350761906} 459 | LocalTexture: {fileID: 2036980354} 460 | ServerIP: 52.174.16.92 461 | PortNumber: 8888 462 | IsInitiator: 1 463 | remotePeerName: mtaultybook 464 | --- !u!1 &2036980354 stripped 465 | GameObject: 466 | m_PrefabParentObject: {fileID: 1689054613996480, guid: 3f98fe6b4190af84d8ff934ceea0e3ec, 467 | type: 2} 468 | m_PrefabInternal: {fileID: 1027309292} 469 | -------------------------------------------------------------------------------- /Assets/main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71971e0c174161c49bff7b5368b01bbf 3 | timeCreated: 1519330067 4 | licenseType: Pro 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ConversationLibrary/ConversationLibrary.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A} 8 | Library 9 | Properties 10 | ConversationLibrary 11 | ConversationLibrary 12 | en-US 13 | UAP 14 | 10.0.14393.0 15 | 10.0.14393.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | 20 | 21 | AnyCPU 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 27 | prompt 28 | 4 29 | 30 | 31 | AnyCPU 32 | pdbonly 33 | true 34 | bin\Release\ 35 | TRACE;NETFX_CORE;WINDOWS_UWP 36 | prompt 37 | 4 38 | 39 | 40 | x86 41 | true 42 | bin\x86\Debug\ 43 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 44 | ;2008 45 | full 46 | x86 47 | false 48 | prompt 49 | 50 | 51 | x86 52 | bin\x86\Release\ 53 | TRACE;NETFX_CORE;WINDOWS_UWP 54 | true 55 | ;2008 56 | pdbonly 57 | x86 58 | false 59 | prompt 60 | 61 | 62 | ARM 63 | true 64 | bin\ARM\Debug\ 65 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 66 | ;2008 67 | full 68 | ARM 69 | false 70 | prompt 71 | 72 | 73 | ARM 74 | bin\ARM\Release\ 75 | TRACE;NETFX_CORE;WINDOWS_UWP 76 | true 77 | ;2008 78 | pdbonly 79 | ARM 80 | false 81 | prompt 82 | 83 | 84 | x64 85 | true 86 | bin\x64\Debug\ 87 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 88 | ;2008 89 | full 90 | x64 91 | false 92 | prompt 93 | 94 | 95 | x64 96 | bin\x64\Release\ 97 | TRACE;NETFX_CORE;WINDOWS_UWP 98 | true 99 | ;2008 100 | pdbonly 101 | x64 102 | false 103 | prompt 104 | 105 | 106 | PackageReference 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 5.0.0 126 | 127 | 128 | 129 | 130 | ..\Assets\Org.WebRtc.winmd 131 | 132 | 133 | 134 | 14.0 135 | 136 | 137 | 144 | -------------------------------------------------------------------------------- /ConversationLibrary/ConversationLibrary.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27130.2027 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConversationLibrary", "ConversationLibrary.csproj", "{C52210D0-B0A3-4BDA-9A9F-63D956287A7A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Debug|ARM = Debug|ARM 12 | Debug|x64 = Debug|x64 13 | Debug|x86 = Debug|x86 14 | Release|Any CPU = Release|Any CPU 15 | Release|ARM = Release|ARM 16 | Release|x64 = Release|x64 17 | Release|x86 = Release|x86 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|ARM.ActiveCfg = Debug|ARM 23 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|ARM.Build.0 = Debug|ARM 24 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|x64.ActiveCfg = Debug|x64 25 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|x64.Build.0 = Debug|x64 26 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|x86.ActiveCfg = Debug|x86 27 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Debug|x86.Build.0 = Debug|x86 28 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|Any CPU.Build.0 = Release|Any CPU 30 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|ARM.ActiveCfg = Release|ARM 31 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|ARM.Build.0 = Release|ARM 32 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|x64.ActiveCfg = Release|x64 33 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|x64.Build.0 = Release|x64 34 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|x86.ActiveCfg = Release|x86 35 | {C52210D0-B0A3-4BDA-9A9F-63D956287A7A}.Release|x86.Build.0 = Release|x86 36 | EndGlobalSection 37 | GlobalSection(SolutionProperties) = preSolution 38 | HideSolutionNode = FALSE 39 | EndGlobalSection 40 | GlobalSection(ExtensibilityGlobals) = postSolution 41 | SolutionGuid = {BE30A3BD-50C6-443C-BF37-823BEF165056} 42 | EndGlobalSection 43 | EndGlobal 44 | -------------------------------------------------------------------------------- /ConversationLibrary/ConversationManager.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary 2 | { 3 | using ConversationLibrary.Interfaces; 4 | using ConversationLibrary.Signalling; 5 | using ConversationLibrary.Utility; 6 | using Org.WebRtc; 7 | using System; 8 | using System.Threading.Tasks; 9 | using Windows.Data.Json; 10 | 11 | public class ConversationManager : IConversationManager 12 | { 13 | // This constructor is for when using my cheap IoC 14 | public ConversationManager() 15 | { 16 | this.signaller = CheapContainer.Resolve(); 17 | this.peerManager = CheapContainer.Resolve(); 18 | this.peerManager.OnIceCandidate += this.OnLocalIceCandidateDeterminedAsync; 19 | this.mediaManager = CheapContainer.Resolve(); 20 | this.dispatcherProvider = CheapContainer.Resolve(); 21 | } 22 | // And this for Autofac or real IoC 23 | public ConversationManager( 24 | ISignallingService signaller, 25 | IPeerManager peerManager, 26 | IMediaManager mediaManager, 27 | IDispatcherProvider dispatcherProvider) 28 | { 29 | this.signaller = signaller; 30 | this.peerManager = peerManager; 31 | this.peerManager.OnIceCandidate += this.OnLocalIceCandidateDeterminedAsync; 32 | this.mediaManager = mediaManager; 33 | this.dispatcherProvider = dispatcherProvider; 34 | } 35 | 36 | public bool IsInitiator 37 | { 38 | get; set; 39 | } 40 | 41 | public async Task InitialiseAsync(string localHostName, string remotePeerName) 42 | { 43 | if (!this.initialised) 44 | { 45 | this.initialised = true; 46 | 47 | this.hostName = localHostName; 48 | this.remotePeerName = remotePeerName; 49 | 50 | // I find that if I don't do this before Initialize() then I crash. 51 | await WebRTC.RequestAccessForMediaCapture(); 52 | 53 | // TODO: we need a dispatcher here. 54 | WebRTC.Initialize(dispatcherProvider.Dispatcher); 55 | 56 | await this.mediaManager.CreateAsync(); 57 | 58 | await this.mediaManager.AddLocalStreamAsync(this.mediaManager.UserMedia); 59 | } 60 | } 61 | public async Task ConnectToSignallingAsync(string ipAddress, int port, 62 | string videoCodecName = null, int? videoClockRate = null) 63 | { 64 | TaskCompletionSource signedIn = new TaskCompletionSource(); 65 | 66 | this.videoCodecName = videoCodecName; 67 | this.videoClockRate = videoClockRate; 68 | 69 | // Have to do this here because PeerConnected fires from the signaller 70 | // *before* SignedIn fires from the signaller. 71 | this.signaller.OnPeerConnected += this.OnSignallingPeerConnected; 72 | 73 | SignedInDelegate successHandler = () => 74 | { 75 | this.signaller.OnMessageFromPeer += this.OnSignallingMessageFromPeer; 76 | this.signaller.OnDisconnected += this.OnSignallingDisconnected; 77 | this.signaller.OnPeerHangup += this.OnSignallingPeerHangup; 78 | signedIn.SetResult(true); 79 | }; 80 | ServerConnectionFailureDelegate failureHandler = () => 81 | { 82 | this.signaller.OnPeerConnected -= this.OnSignallingPeerConnected; 83 | signedIn.SetResult(false); 84 | }; 85 | 86 | this.signaller.OnSignedIn += successHandler; 87 | this.signaller.OnServerConnectionFailure += failureHandler; 88 | 89 | await this.signaller.ConnectAsync(ipAddress, port.ToString(), this.hostName); 90 | 91 | this.signaller.OnSignedIn -= successHandler; 92 | this.signaller.OnServerConnectionFailure -= failureHandler; 93 | 94 | await signedIn.Task; 95 | 96 | return (signedIn.Task.Result); 97 | } 98 | public void ShutDown() 99 | { 100 | if (this.signaller.IsConnected()) 101 | { 102 | // TODO: send BYE? 103 | this.signaller.OnPeerConnected -= this.OnSignallingPeerConnected; 104 | this.signaller.OnMessageFromPeer -= this.OnSignallingMessageFromPeer; 105 | this.signaller.OnDisconnected -= this.OnSignallingDisconnected; 106 | this.signaller.OnPeerHangup -= this.OnSignallingPeerHangup; 107 | } 108 | this.mediaManager.Shutdown(); 109 | this.peerManager.Shutdown(); 110 | } 111 | async void OnSignallingPeerConnected(object id, string name) 112 | { 113 | // We are simply going to jump at the first opportunity we get. 114 | if (this.IsInitiator && (string.Compare(name, this.remotePeerName, true) == 0)) 115 | { 116 | // We have found a peer to connect to so we will connect to it. 117 | this.peerManager.CreateConnectionForPeerAsync((int)id); 118 | 119 | await this.SendOfferToRemotePeerAsync(); 120 | } 121 | } 122 | void OnSignallingDisconnected() 123 | { 124 | this.ShutDown(); 125 | } 126 | void OnSignallingPeerHangup(object peerId) 127 | { 128 | this.peerManager.Shutdown(); 129 | } 130 | async void OnSignallingMessageFromPeer(object peerId, string message) 131 | { 132 | var numericalPeerId = (int)peerId; 133 | 134 | var jsonObject = JsonObject.Parse(message); 135 | 136 | switch (SignallerMessagingExtensions.GetMessageType(jsonObject)) 137 | { 138 | case SignallerMessagingExtensions.MessageType.Offer: 139 | await this.OnOfferMessageFromPeerAsync(numericalPeerId, jsonObject); 140 | break; 141 | case SignallerMessagingExtensions.MessageType.Answer: 142 | await this.OnAnswerMessageFromPeerAsync(numericalPeerId, jsonObject); 143 | break; 144 | case SignallerMessagingExtensions.MessageType.Ice: 145 | await this.OnIceMessageFromPeerAsync(numericalPeerId, jsonObject); 146 | break; 147 | default: 148 | break; 149 | } 150 | } 151 | async Task OnOfferMessageFromPeerAsync(int peerId, JsonObject message) 152 | { 153 | var sdp = SignallerMessagingExtensions.SdpFromJsonMessage(message); 154 | await this.AcceptRemotePeerOfferAsync(peerId, sdp); 155 | } 156 | async Task OnAnswerMessageFromPeerAsync(int peerId, JsonObject message) 157 | { 158 | var sdp = SignallerMessagingExtensions.SdpFromJsonMessage(message); 159 | await this.peerManager.AcceptRemoteAnswerAsync(sdp); 160 | } 161 | async Task OnIceMessageFromPeerAsync(int peerId, JsonObject message) 162 | { 163 | var candidate = SignallerMessagingExtensions.IceCandidateFromJsonMessage(message); 164 | await this.peerManager.AddIceCandidateAsync(candidate); 165 | } 166 | async Task SendOfferToRemotePeerAsync() 167 | { 168 | // Create the offer. 169 | var description = await this.peerManager.CreateAndSetLocalOfferAsync( 170 | this.videoCodecName, this.videoClockRate); 171 | 172 | var jsonMessage = description.ToJsonMessageString( 173 | SignallerMessagingExtensions.MessageType.Offer); 174 | 175 | await this.signaller.SendToPeerAsync(this.peerManager.PeerId, jsonMessage); 176 | } 177 | async Task AcceptRemotePeerOfferAsync(int peerId, string sdpDescription) 178 | { 179 | // Only if we're expecting a call. 180 | if (!this.IsInitiator) 181 | { 182 | var answer = await this.peerManager.AcceptRemoteOfferAsync(peerId, sdpDescription); 183 | 184 | // And sent it back over the network to the peer as the answer. 185 | await this.signaller.SendToPeerAsync( 186 | this.peerManager.PeerId, 187 | answer.ToJsonMessageString(SignallerMessagingExtensions.MessageType.Answer)); 188 | } 189 | } 190 | async void OnLocalIceCandidateDeterminedAsync(RTCPeerConnectionIceEvent args) 191 | { 192 | // We send this to our connected peer immediately. 193 | if (this.signaller.IsConnected()) 194 | { 195 | var jsonMessage = args.Candidate.ToJsonMessageString(); 196 | await this.signaller.SendToPeerAsync(this.peerManager.PeerId, jsonMessage); 197 | } 198 | } 199 | IMediaManager mediaManager; 200 | IPeerManager peerManager; 201 | ISignallingService signaller; 202 | IDispatcherProvider dispatcherProvider; 203 | string hostName; 204 | string remotePeerName; 205 | bool initialised; 206 | string videoCodecName; 207 | int? videoClockRate; 208 | } 209 | } 210 | -------------------------------------------------------------------------------- /ConversationLibrary/Interfaces/IConversationManager.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace ConversationLibrary.Interfaces 4 | { 5 | public interface IConversationManager 6 | { 7 | bool IsInitiator { get; set; } 8 | 9 | Task ConnectToSignallingAsync(string ipAddress, int port, 10 | string videoCodecName = null, int? videoClockRate = null); 11 | 12 | Task InitialiseAsync(string localHostName, string remotePeerName); 13 | } 14 | } -------------------------------------------------------------------------------- /ConversationLibrary/Interfaces/IDispatcherProvider.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary.Interfaces 2 | { 3 | using System.ComponentModel; 4 | using Windows.UI.Core; 5 | using Windows.UI.Xaml.Controls; 6 | 7 | public interface IDispatcherProvider : INotifyPropertyChanged 8 | { 9 | CoreDispatcher Dispatcher { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /ConversationLibrary/Interfaces/IMediaManager.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Org.WebRtc; 3 | 4 | namespace ConversationLibrary.Interfaces 5 | { 6 | public interface IMediaManager 7 | { 8 | Media Media { get; } 9 | MediaStream UserMedia { get; } 10 | Task CreateAsync(bool audioEnabled = true, bool videoEnabled = true); 11 | Task AddRemoteStreamAsync(MediaStream stream); 12 | Task AddLocalStreamAsync(MediaStream stream); 13 | void RemoveRemoteStream(); 14 | void RemoveLocalStream(); 15 | void Shutdown(); 16 | } 17 | } -------------------------------------------------------------------------------- /ConversationLibrary/Interfaces/IPeerManager.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Org.WebRtc; 3 | 4 | namespace ConversationLibrary.Interfaces 5 | { 6 | public interface IPeerManager 7 | { 8 | object PeerId { get; } 9 | event RTCPeerConnectionIceEventDelegate OnIceCandidate; 10 | void CreateConnectionForPeerAsync(object peerId); 11 | Task CreateAndSetLocalOfferAsync( 12 | string videoCodecName, int? videoClockRate); 13 | 14 | Task AddIceCandidateAsync(RTCIceCandidate iceCandidate); 15 | Task AcceptRemoteOfferAsync(object peerId, string sdpDescription); 16 | Task AcceptRemoteAnswerAsync(string sdpAnswer); 17 | void Shutdown(); 18 | } 19 | } -------------------------------------------------------------------------------- /ConversationLibrary/Interfaces/ISignallingService.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary.Interfaces 2 | { 3 | using System.Threading.Tasks; 4 | 5 | public delegate void SignedInDelegate(); 6 | public delegate void DisconnectedDelegate(); 7 | public delegate void PeerConnectedDelegate(object peerId, string name); 8 | public delegate void PeerDisonnectedDelegate(object peerId); 9 | public delegate void PeerHangupDelegate(object peerId); 10 | public delegate void MessageFromPeerDelegate(object peerId, string message); 11 | public delegate void ServerConnectionFailureDelegate(); 12 | 13 | public interface ISignallingService 14 | { 15 | event DisconnectedDelegate OnDisconnected; 16 | event MessageFromPeerDelegate OnMessageFromPeer; 17 | event PeerConnectedDelegate OnPeerConnected; 18 | event PeerDisonnectedDelegate OnPeerDisconnected; 19 | event PeerHangupDelegate OnPeerHangup; 20 | event ServerConnectionFailureDelegate OnServerConnectionFailure; 21 | event SignedInDelegate OnSignedIn; 22 | 23 | Task ConnectAsync(string server, string port, string client_name); 24 | bool IsConnected(); 25 | Task SendToPeerAsync(object peerId, string message); 26 | Task SignOutAsync(); 27 | } 28 | } -------------------------------------------------------------------------------- /ConversationLibrary/PeerManager.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary 2 | { 3 | using System; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using ConversationLibrary.Interfaces; 7 | using ConversationLibrary.Utility; 8 | using Org.WebRtc; 9 | 10 | public class PeerManager : IPeerManager 11 | { 12 | public event RTCPeerConnectionIceEventDelegate OnIceCandidate; 13 | 14 | // Intention is that this constructor is used when using our cheap IoC. 15 | public PeerManager() 16 | { 17 | this.mediaManager = CheapContainer.Resolve(); 18 | } 19 | // And this one for real IoC (autofac in my case) 20 | public PeerManager(IMediaManager mediaManager) 21 | { 22 | this.mediaManager = mediaManager; 23 | } 24 | public object PeerId => this.currentPeerId.Value; 25 | 26 | public void CreateConnectionForPeerAsync(object peerId) 27 | { 28 | this.currentPeerId = (int)peerId; 29 | 30 | if (this.peerConnection == null) 31 | { 32 | this.peerConnection = new RTCPeerConnection( 33 | new RTCConfiguration() 34 | { 35 | BundlePolicy = RTCBundlePolicy.Balanced, 36 | IceTransportPolicy = RTCIceTransportPolicy.All 37 | } 38 | ); 39 | this.peerConnection.AddStream(this.mediaManager.UserMedia); 40 | this.peerConnection.OnAddStream += OnPeerAddsRemoteStreamAsync; 41 | this.peerConnection.OnIceCandidate += OnLocalIceCandidateDetermined; 42 | } 43 | } 44 | public async Task AcceptRemoteOfferAsync(object peerId, string sdpDescription) 45 | { 46 | this.CreateConnectionForPeerAsync(peerId); 47 | 48 | // Take the description from the UI and set it as our Remote Description 49 | // of type 'offer' 50 | await this.peerConnection.SetRemoteDescription( 51 | new RTCSessionDescription(RTCSdpType.Offer, sdpDescription)); 52 | 53 | // And create our answer 54 | var answer = await this.peerConnection.CreateAnswer(); 55 | 56 | // And set that as our local description 57 | await this.peerConnection.SetLocalDescription(answer); 58 | 59 | return (answer); 60 | } 61 | public async Task CreateAndSetLocalOfferAsync( 62 | string videoCodecName = null, int? videoClockRate = null) 63 | { 64 | // Create the offer. 65 | var description = await this.peerConnection.CreateOffer(); 66 | 67 | // We filter some pieces out of the SDP based on what I think 68 | // aren't supported Codecs. I largely took it from the original sample 69 | // when things didn't work for me without it. 70 | var filteredDescriptionSdp = SdpUtility.FilterToSupportedCodecs(description.Sdp); 71 | 72 | if (!string.IsNullOrEmpty(videoCodecName)) 73 | { 74 | SdpUtility.SelectCodecs(ref filteredDescriptionSdp, 75 | null, new CodecInfo(videoClockRate.Value, videoCodecName)); 76 | } 77 | description.Sdp = filteredDescriptionSdp; 78 | 79 | // Set that filtered offer description as our local description. 80 | await this.peerConnection.SetLocalDescription(description); 81 | 82 | return (description); 83 | } 84 | public async Task AcceptRemoteAnswerAsync(string sdpAnswer) 85 | { 86 | await this.peerConnection.SetRemoteDescription(new RTCSessionDescription(RTCSdpType.Answer, sdpAnswer)); 87 | } 88 | public async Task AddIceCandidateAsync(RTCIceCandidate iceCandidate) 89 | { 90 | await this.peerConnection.AddIceCandidate(iceCandidate); 91 | } 92 | void OnLocalIceCandidateDetermined(RTCPeerConnectionIceEvent iceCandidate) 93 | { 94 | this.OnIceCandidate?.Invoke(iceCandidate); 95 | } 96 | async void OnPeerAddsRemoteStreamAsync(MediaStreamEvent args) 97 | { 98 | var stream = args?.Stream; 99 | 100 | if (stream != null) 101 | { 102 | await this.mediaManager.AddRemoteStreamAsync(stream); 103 | } 104 | } 105 | public void Shutdown() 106 | { 107 | if (this.peerConnection != null) 108 | { 109 | this.mediaManager.RemoveRemoteStream(); 110 | this.peerConnection.OnIceCandidate -= this.OnLocalIceCandidateDetermined; 111 | this.peerConnection.OnAddStream -= this.OnPeerAddsRemoteStreamAsync; 112 | this.peerConnection.Close(); 113 | this.peerConnection = null; 114 | this.currentPeerId = null; 115 | } 116 | } 117 | IMediaManager mediaManager; 118 | RTCPeerConnection peerConnection; 119 | int? currentPeerId; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /ConversationLibrary/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ConversationLibrary")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ConversationLibrary")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /ConversationLibrary/Properties/ConversationLibrary.rd.xml: -------------------------------------------------------------------------------- 1 | 2 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /ConversationLibrary/Signalling/SignallerMessagingExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary.Signalling 2 | { 3 | using Org.WebRtc; 4 | using Windows.Data.Json; 5 | 6 | static class SignallerMessagingExtensions 7 | { 8 | public enum MessageType 9 | { 10 | Offer, 11 | Answer, 12 | Ice, 13 | Unknown 14 | } 15 | public static MessageType GetMessageType(JsonObject message) 16 | { 17 | var type = MessageType.Unknown; 18 | 19 | // if the message contains a message type then we know what it is because this application 20 | // must be on the other end sending it. 21 | IJsonValue value; 22 | 23 | if (message.TryGetValue(messageType, out value)) 24 | { 25 | type = (MessageType)value.GetNumber(); 26 | } 27 | else 28 | { 29 | // The sample app must be on the other end so we have to try harder. 30 | if (message.ContainsKey(kSessionDescriptionTypeName)) 31 | { 32 | // this is SDP - could be an offer or an answer (or a pranswer which I'm ignoring). 33 | var sdpType = message.GetNamedString(kSessionDescriptionTypeName); 34 | type = sdpType == "offer" ? MessageType.Offer : MessageType.Answer; 35 | } 36 | else if (message.ContainsKey(kCandidateSdpMidName)) 37 | { 38 | type = MessageType.Ice; 39 | } 40 | } 41 | return (type); 42 | } 43 | public static RTCIceCandidate IceCandidateFromJsonMessage(JsonObject jsonObject) 44 | { 45 | var candidate = new RTCIceCandidate( 46 | jsonObject.GetNamedString(kCandidateSdpName), 47 | jsonObject.GetNamedString(kCandidateSdpMidName), 48 | (ushort)jsonObject.GetNamedNumber(kCandidateSdpMlineIndexName)); 49 | 50 | return (candidate); 51 | } 52 | public static string ToJsonMessageString(this RTCIceCandidate candidate) 53 | { 54 | var json = new JsonObject() 55 | { 56 | { messageType, JsonValue.CreateNumberValue((int)MessageType.Ice) }, 57 | { kCandidateSdpMidName, JsonValue.CreateStringValue(candidate.SdpMid) }, 58 | { kCandidateSdpMlineIndexName, JsonValue.CreateNumberValue(candidate.SdpMLineIndex)}, 59 | { kCandidateSdpName, JsonValue.CreateStringValue(candidate.Candidate)} 60 | }; 61 | return (json.Stringify()); 62 | } 63 | public static string ToJsonMessageString(this RTCSessionDescription description, 64 | MessageType jsonMessageType) 65 | { 66 | var json = new JsonObject() 67 | { 68 | { messageType, JsonValue.CreateNumberValue((int)jsonMessageType) }, 69 | { kSessionDescriptionTypeName, JsonValue.CreateStringValue(description.Type.GetValueOrDefault().ToString().ToLower()) }, 70 | { kSessionDescriptionSdpName, JsonValue.CreateStringValue(description.Sdp) } 71 | }; 72 | return (json.Stringify()); 73 | } 74 | public static string SdpFromJsonMessage(JsonObject jsonObject) 75 | { 76 | return (jsonObject.GetNamedString(kSessionDescriptionSdpName)); 77 | } 78 | // My addition to the protocol that's already part of the sample - I add a message type although 79 | // I think it can be inferred anyway so my app will always add this whereas the sample app won't 80 | // have it. 81 | private static readonly string messageType = "messageType"; 82 | 83 | // SDP negotiation attributes 84 | private static readonly string kCandidateSdpMidName = "sdpMid"; 85 | private static readonly string kCandidateSdpMlineIndexName = "sdpMLineIndex"; 86 | private static readonly string kCandidateSdpName = "candidate"; 87 | private static readonly string kSessionDescriptionTypeName = "type"; 88 | private static readonly string kSessionDescriptionSdpName = "sdp"; 89 | 90 | } 91 | } -------------------------------------------------------------------------------- /ConversationLibrary/Utility/CheapContainer.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary.Utility 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | public static class CheapContainer 7 | { 8 | public static void Register() 9 | where C : class, I, new() 10 | where I : class 11 | { 12 | object instance = null; 13 | C typedInstance = null; 14 | 15 | if (instanceMap.TryGetValue(typeof(C), out instance)) 16 | { 17 | typedInstance = (C)instance; 18 | } 19 | else 20 | { 21 | typedInstance = new C(); 22 | instanceMap[typeof(C)] = typedInstance; 23 | } 24 | typeMap[typeof(I)] = typedInstance; 25 | } 26 | public static I Resolve() where I : class 27 | { 28 | return (typeMap[typeof(I)] as I); 29 | } 30 | static Dictionary instanceMap = new Dictionary(); 31 | static Dictionary typeMap = new Dictionary(); 32 | } 33 | } -------------------------------------------------------------------------------- /ConversationLibrary/Utility/SdpUtility.cs: -------------------------------------------------------------------------------- 1 | namespace ConversationLibrary.Utility 2 | { 3 | using Org.WebRtc; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text.RegularExpressions; 8 | 9 | public static class SdpUtility 10 | { 11 | /// 12 | /// Forces the SDP to use the selected audio and video codecs. 13 | /// 14 | /// Session description. 15 | /// Audio codec. 16 | /// Video codec. 17 | /// True if succeeds to force to use the selected audio/video codecs. 18 | public static void SelectCodecs(ref string sdp, CodecInfo audioCodec, CodecInfo videoCodec) 19 | { 20 | string audioCodecName = audioCodec?.Name ?? null; 21 | string videoCodecName = videoCodec?.Name ?? null; 22 | 23 | if (audioCodecName != null) 24 | { 25 | MaybePreferCodec(ref sdp, "audio", "receive", audioCodecName); 26 | MaybePreferCodec(ref sdp, "audio", "send", audioCodecName); 27 | } 28 | if (videoCodecName != null) 29 | { 30 | MaybePreferCodec(ref sdp, "video", "receive", videoCodecName); 31 | MaybePreferCodec(ref sdp, "video", "send", videoCodecName); 32 | } 33 | } 34 | 35 | /// 36 | /// WARNING! :-) 37 | /// Heavily borrowed from the original sample with some mods - the original sample also did 38 | /// some work to pick a specific video codec and also to move VP8 to the head of the list 39 | /// but I've not done that yet. 40 | /// 41 | /// Additionally, at some point it seems that the CodecInfo structure lost its ID property 42 | /// which the original code was using so now it only has a NAME property. This made it 43 | /// harder for me to leave the original code alone and I had to modify it some more and 44 | /// add in the GetCodecId() method above to try and reproduce what was originally happening 45 | /// in the code that I took from the sample. I don't think what I've done is *perfect* 46 | /// though so I wouldn't be surprised if at some point this code started causing someone 47 | /// a problem and it needed revisiting. 48 | /// 49 | /// 50 | /// 51 | /// 52 | public static string FilterToSupportedCodecs(string originalSdp) 53 | { 54 | var filteredSdp = originalSdp; 55 | 56 | string[] incompatibleAudioCodecs = 57 | new string[] { "CN32000", "CN16000", "CN8000", "red8000", "telephone-event8000" }; 58 | 59 | var compatibleCodecs = WebRTC.GetAudioCodecs().Where( 60 | codec => !incompatibleAudioCodecs.Contains(codec.Name + codec.ClockRate) && 61 | !string.IsNullOrEmpty(GetCodecId(codec))); 62 | 63 | Regex mfdRegex = new Regex("\r\nm=audio.*RTP.*?( .\\d*)+\r\n"); 64 | Match mfdMatch = mfdRegex.Match(filteredSdp); 65 | 66 | List mfdListToErase = new List(); //mdf = media format descriptor 67 | 68 | bool audioMediaDescFound = mfdMatch.Groups.Count > 1; //Group 0 is whole match 69 | 70 | if (audioMediaDescFound) 71 | { 72 | for (int groupCtr = 1/*Group 0 is whole match*/; groupCtr < mfdMatch.Groups.Count; groupCtr++) 73 | { 74 | for (int captureCtr = 0; captureCtr < mfdMatch.Groups[groupCtr].Captures.Count; captureCtr++) 75 | { 76 | mfdListToErase.Add(mfdMatch.Groups[groupCtr].Captures[captureCtr].Value.TrimStart()); 77 | } 78 | } 79 | mfdListToErase.RemoveAll( 80 | entry => compatibleCodecs.Any(c => GetCodecId(c) == entry)); 81 | 82 | // Alter audio entry 83 | Regex audioRegex = new Regex("\r\n(m=audio.*RTP.*?)( .\\d*)+"); 84 | 85 | // TODO: same comment as before 86 | filteredSdp = audioRegex.Replace( 87 | filteredSdp, 88 | "\r\n$1 " + string.Join(" ", compatibleCodecs.Select(c => GetCodecId(c)))); 89 | } 90 | 91 | // Remove associated rtp mapping, format parameters, feedback parameters 92 | Regex removeOtherMdfs = new Regex("a=(rtpmap|fmtp|rtcp-fb):(" + String.Join("|", mfdListToErase) + ") .*\r\n"); 93 | 94 | filteredSdp = removeOtherMdfs.Replace(filteredSdp, ""); 95 | 96 | return (filteredSdp); 97 | } 98 | static string GetCodecId(CodecInfo codecInfo) 99 | { 100 | // Taken from https://chromium.googlesource.com/external/webrtc/stable/talk/+/master/media/webrtc/webrtcvoiceengine.cc 101 | var codecs = new[] 102 | { 103 | new { Name="OPUS", Bitrate=48000, Channels=2, Id=111 }, 104 | new { Name="ISAC", Bitrate=16000, Channels=1, Id=103 }, 105 | new { Name="ISAC", Bitrate=32000, Channels=1, Id=104 }, 106 | new { Name="CELT", Bitrate=32000, Channels=1, Id=109 }, 107 | new { Name="CELT", Bitrate=32000, Channels=2, Id=110 }, 108 | new { Name="G722", Bitrate=16000, Channels=1, Id=9 }, 109 | new { Name="ILBC", Bitrate=8000, Channels=1, Id=102 }, 110 | new { Name="PCMU", Bitrate=8000, Channels=1, Id=0 }, 111 | new { Name="PCMA", Bitrate=8000, Channels=1, Id=8 }, 112 | new { Name="CN", Bitrate=48000, Channels=1, Id=107 }, 113 | new { Name="CN", Bitrate=32000, Channels=1, Id=106 }, 114 | new { Name="CN", Bitrate=16000, Channels=1, Id=105 }, 115 | new { Name="CN", Bitrate=8000, Channels=1, Id=13 }, 116 | new { Name="RED", Bitrate=8000, Channels=1, Id=127 }, 117 | new { Name="TELEPHONE-EVENT", Bitrate=8000, Channels=1, Id=126 } 118 | }; 119 | var entries = codecs.Where( 120 | (c => (c.Name == codecInfo.Name.ToUpper()) && c.Bitrate == codecInfo.ClockRate)); 121 | 122 | // TODO: Unsure what to do in the case where we get called with a Name/Bitrate 123 | // and we have no entry for it. We return empty string for it right now. 124 | return (entries.FirstOrDefault()?.Id.ToString() ?? string.Empty); 125 | } 126 | 127 | // Sets |codec| as the default |type| codec if it's present. 128 | // The format of |codec| is 'NAME/RATE', e.g. 'opus/48000'. 129 | static bool MaybePreferCodec(ref string sdp, string type, string dir, string codec) 130 | { 131 | string str = type + " " + dir + " codec"; 132 | 133 | string[] sdpLines = sdp.Split(new string[] { "\r\n" }, StringSplitOptions.None); 134 | 135 | // Search for m line. 136 | var mLineIndex = FindLine(sdpLines, "m=", type); 137 | if (mLineIndex == -1) 138 | { 139 | return false; 140 | } 141 | 142 | // If the codec is available, set it as the default in m line. 143 | string payload = null; 144 | // Iterate through rtpmap enumerations to find all matching codec entries 145 | for (int i = sdpLines.Length - 1; i >= 0; i--) 146 | { 147 | // Finds first match in rtpmap 148 | int index = FindLineInRange(sdpLines, i, 0, "a=rtpmap", codec, 1); 149 | if (index != -1) 150 | { 151 | // Skip all of the entries between i and index match 152 | i = index; 153 | payload = GetCodecPayloadTypeFromLine(sdpLines[index]); 154 | if (payload != null) 155 | { 156 | // Move codec to top 157 | sdpLines[mLineIndex] = SetDefaultCodec(sdpLines[mLineIndex], payload); 158 | } 159 | } 160 | else 161 | { 162 | // No match means we can break the loop 163 | break; 164 | } 165 | } 166 | 167 | sdp = string.Join("\r\n", sdpLines); 168 | return true; 169 | } 170 | 171 | // Find the line in sdpLines that starts with |prefix|, and, if specified, 172 | // contains |substr| (case-insensitive search). 173 | static int FindLine(string[] sdpLines, string prefix, string substr) 174 | { 175 | return FindLineInRange(sdpLines, 0, -1, prefix, substr); 176 | } 177 | 178 | // Find the line in sdpLines[startLine...endLine - 1] that starts with |prefix| 179 | // and, if specified, contains |substr| (case-insensitive search). 180 | static int FindLineInRange(string[] sdpLines, int startLine, int endLine, string prefix, string substr, int direction = 0) 181 | { 182 | if (direction != 0) 183 | { 184 | direction = 1; 185 | } 186 | 187 | if (direction == 0) 188 | { 189 | // Search beginning to end 190 | int realEndLine = endLine != -1 ? endLine : sdpLines.Length; 191 | for (int i = startLine; i < realEndLine; i++) 192 | { 193 | if (sdpLines[i].StartsWith(prefix)) 194 | { 195 | if (substr == "" || sdpLines[i].ToLower().Contains(substr.ToLower())) 196 | { 197 | return i; 198 | } 199 | } 200 | } 201 | } 202 | else 203 | { 204 | // Search end to beginning 205 | var realStartLine = startLine != -1 ? startLine : sdpLines.Length - 1; 206 | for (var j = realStartLine; j >= 0; --j) 207 | { 208 | if (sdpLines[j].StartsWith(prefix)) 209 | { 210 | if (substr == "" || sdpLines[j].ToLower().Contains(substr.ToLower())) 211 | { 212 | return j; 213 | } 214 | } 215 | } 216 | } 217 | return -1; 218 | } 219 | 220 | // Gets the codec payload type from an a=rtpmap:X line. 221 | static string GetCodecPayloadTypeFromLine(string sdpLine) 222 | { 223 | Regex pattern = new Regex("a=rtpmap:(\\d+) [a-zA-Z0-9-]+\\/\\d+"); 224 | Match result = pattern.Match(sdpLine); 225 | return (result.Success) ? result.Groups[1].Value : null; 226 | } 227 | 228 | // Returns a new m= line with the specified codec as the first one. 229 | static string SetDefaultCodec(string mLine, string payload) 230 | { 231 | List elements = new List(mLine.Split(' ')); 232 | 233 | // Just copy the first three parameters; codec order starts on fourth. 234 | List newLine = elements.GetRange(0, 3); 235 | 236 | // Put target payload first and copy in the rest. 237 | newLine.Add(payload); 238 | elements.GetRange(3, elements.Count - 3).ForEach( 239 | delegate (String element) 240 | { 241 | if (!element.Equals(payload)) 242 | { 243 | newLine.Add(element); 244 | } 245 | }); 246 | 247 | return String.Join(" ", newLine); 248 | } 249 | } 250 | } 251 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Pete D 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | m_AutoSimulation: 1 20 | m_AutoSyncTransforms: 1 21 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/main.unity 10 | guid: 71971e0c174161c49bff7b5368b01bbf 11 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 0 10 | m_SpritePackerMode: 0 11 | m_SpritePackerPaddingPower: 1 12 | m_EtcTextureCompressorBehavior: 1 13 | m_EtcTextureFastCompressor: 1 14 | m_EtcTextureNormalCompressor: 2 15 | m_EtcTextureBestCompressor: 4 16 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 17 | m_ProjectGenerationRootNamespace: 18 | m_UserGeneratedProjectSuffix: 19 | m_CollabEditorSettings: 20 | inProgressEnabled: 1 21 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 42 | type: 0} 43 | m_CustomRenderPipeline: {fileID: 0} 44 | m_TransparencySortMode: 0 45 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 46 | m_DefaultRenderingPath: 1 47 | m_DefaultMobileRenderingPath: 1 48 | m_TierSettings: [] 49 | m_LightmapStripping: 0 50 | m_FogStripping: 0 51 | m_InstancingStripping: 0 52 | m_LightmapKeepPlain: 1 53 | m_LightmapKeepDirCombined: 1 54 | m_LightmapKeepDynamicPlain: 1 55 | m_LightmapKeepDynamicDirCombined: 1 56 | m_LightmapKeepShadowMask: 1 57 | m_LightmapKeepSubtractive: 1 58 | m_FogKeepLinear: 1 59 | m_FogKeepExp: 1 60 | m_FogKeepExp2: 1 61 | m_AlbedoSwatchInfos: [] 62 | m_LightsUseLinearIntensity: 0 63 | m_LightsUseColorTemperature: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | productGUID: f08aa2339e094354bb48996e80f9b554 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | defaultScreenOrientation: 4 11 | targetDevice: 2 12 | useOnDemandResources: 0 13 | accelerometerFrequency: 60 14 | companyName: DefaultCompany 15 | productName: WebRTCTest 16 | defaultCursor: {fileID: 0} 17 | cursorHotspot: {x: 0, y: 0} 18 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 19 | m_ShowUnitySplashScreen: 1 20 | m_ShowUnitySplashLogo: 1 21 | m_SplashScreenOverlayOpacity: 1 22 | m_SplashScreenAnimation: 1 23 | m_SplashScreenLogoStyle: 1 24 | m_SplashScreenDrawMode: 0 25 | m_SplashScreenBackgroundAnimationZoom: 1 26 | m_SplashScreenLogoAnimationZoom: 1 27 | m_SplashScreenBackgroundLandscapeAspect: 1 28 | m_SplashScreenBackgroundPortraitAspect: 1 29 | m_SplashScreenBackgroundLandscapeUvs: 30 | serializedVersion: 2 31 | x: 0 32 | y: 0 33 | width: 1 34 | height: 1 35 | m_SplashScreenBackgroundPortraitUvs: 36 | serializedVersion: 2 37 | x: 0 38 | y: 0 39 | width: 1 40 | height: 1 41 | m_SplashScreenLogos: [] 42 | m_VirtualRealitySplashScreen: {fileID: 0} 43 | m_HolographicTrackingLossScreen: {fileID: 0} 44 | defaultScreenWidth: 1024 45 | defaultScreenHeight: 768 46 | defaultScreenWidthWeb: 960 47 | defaultScreenHeightWeb: 600 48 | m_StereoRenderingPath: 0 49 | m_ActiveColorSpace: 0 50 | m_MTRendering: 1 51 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 52 | iosShowActivityIndicatorOnLoading: -1 53 | androidShowActivityIndicatorOnLoading: -1 54 | tizenShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | disableDepthAndStencilBuffers: 0 65 | androidBlitType: 0 66 | defaultIsFullScreen: 1 67 | defaultIsNativeResolution: 1 68 | macRetinaSupport: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | Force IOS Speakers When Recording: 0 74 | deferSystemGesturesMode: 0 75 | hideHomeButton: 0 76 | submitAnalytics: 1 77 | usePlayerLog: 1 78 | bakeCollisionMeshes: 0 79 | forceSingleInstance: 0 80 | resizableWindow: 0 81 | useMacAppStoreValidation: 0 82 | macAppStoreCategory: public.app-category.games 83 | gpuSkinning: 0 84 | graphicsJobs: 0 85 | xboxPIXTextureCapture: 0 86 | xboxEnableAvatar: 0 87 | xboxEnableKinect: 0 88 | xboxEnableKinectAutoTracking: 0 89 | xboxEnableFitness: 0 90 | visibleInBackground: 1 91 | allowFullscreenSwitch: 1 92 | graphicsJobMode: 0 93 | macFullscreenMode: 2 94 | d3d9FullscreenMode: 1 95 | d3d11FullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | n3dsDisableStereoscopicView: 0 102 | n3dsEnableSharedListOpt: 1 103 | n3dsEnableVSync: 0 104 | ignoreAlphaClear: 0 105 | xboxOneResolution: 0 106 | xboxOneSResolution: 0 107 | xboxOneXResolution: 3 108 | xboxOneMonoLoggingLevel: 0 109 | xboxOneLoggingLevel: 1 110 | xboxOneDisableEsram: 0 111 | xboxOnePresentImmediateThreshold: 0 112 | videoMemoryForVertexBuffers: 0 113 | psp2PowerMode: 0 114 | psp2AcquireBGM: 1 115 | wiiUTVResolution: 0 116 | wiiUGamePadMSAA: 1 117 | wiiUSupportsNunchuk: 0 118 | wiiUSupportsClassicController: 0 119 | wiiUSupportsBalanceBoard: 0 120 | wiiUSupportsMotionPlus: 0 121 | wiiUSupportsProController: 0 122 | wiiUAllowScreenCapture: 1 123 | wiiUControllerCount: 0 124 | m_SupportedAspectRatios: 125 | 4:3: 1 126 | 5:4: 1 127 | 16:10: 1 128 | 16:9: 1 129 | Others: 1 130 | bundleVersion: 1.0 131 | preloadedAssets: [] 132 | metroInputSource: 0 133 | m_HolographicPauseOnTrackingLoss: 1 134 | xboxOneDisableKinectGpuReservation: 0 135 | xboxOneEnable7thCore: 0 136 | vrSettings: 137 | cardboard: 138 | depthFormat: 0 139 | enableTransitionView: 0 140 | daydream: 141 | depthFormat: 0 142 | useSustainedPerformanceMode: 0 143 | enableVideoLayer: 0 144 | useProtectedVideoMemory: 0 145 | hololens: 146 | depthFormat: 1 147 | protectGraphicsMemory: 0 148 | useHDRDisplay: 0 149 | m_ColorGamuts: 00000000 150 | targetPixelDensity: 30 151 | resolutionScalingMode: 0 152 | androidSupportedAspectRatio: 1 153 | androidMaxAspectRatio: 2.1 154 | applicationIdentifier: {} 155 | buildNumber: {} 156 | AndroidBundleVersionCode: 1 157 | AndroidMinSdkVersion: 16 158 | AndroidTargetSdkVersion: 0 159 | AndroidPreferredInstallLocation: 1 160 | aotOptions: 161 | stripEngineCode: 1 162 | iPhoneStrippingLevel: 0 163 | iPhoneScriptCallOptimization: 0 164 | ForceInternetPermission: 0 165 | ForceSDCardPermission: 0 166 | CreateWallpaper: 0 167 | APKExpansionFiles: 0 168 | keepLoadedShadersAlive: 0 169 | StripUnusedMeshComponents: 0 170 | VertexChannelCompressionMask: 171 | serializedVersion: 2 172 | m_Bits: 238 173 | iPhoneSdkVersion: 988 174 | iOSTargetOSVersionString: 7.0 175 | tvOSSdkVersion: 0 176 | tvOSRequireExtendedGameController: 0 177 | tvOSTargetOSVersionString: 9.0 178 | uIPrerenderedIcon: 0 179 | uIRequiresPersistentWiFi: 0 180 | uIRequiresFullScreen: 1 181 | uIStatusBarHidden: 1 182 | uIExitOnSuspend: 0 183 | uIStatusBarStyle: 0 184 | iPhoneSplashScreen: {fileID: 0} 185 | iPhoneHighResSplashScreen: {fileID: 0} 186 | iPhoneTallHighResSplashScreen: {fileID: 0} 187 | iPhone47inSplashScreen: {fileID: 0} 188 | iPhone55inPortraitSplashScreen: {fileID: 0} 189 | iPhone55inLandscapeSplashScreen: {fileID: 0} 190 | iPhone58inPortraitSplashScreen: {fileID: 0} 191 | iPhone58inLandscapeSplashScreen: {fileID: 0} 192 | iPadPortraitSplashScreen: {fileID: 0} 193 | iPadHighResPortraitSplashScreen: {fileID: 0} 194 | iPadLandscapeSplashScreen: {fileID: 0} 195 | iPadHighResLandscapeSplashScreen: {fileID: 0} 196 | appleTVSplashScreen: {fileID: 0} 197 | appleTVSplashScreen2x: {fileID: 0} 198 | tvOSSmallIconLayers: [] 199 | tvOSSmallIconLayers2x: [] 200 | tvOSLargeIconLayers: [] 201 | tvOSLargeIconLayers2x: [] 202 | tvOSTopShelfImageLayers: [] 203 | tvOSTopShelfImageLayers2x: [] 204 | tvOSTopShelfImageWideLayers: [] 205 | tvOSTopShelfImageWideLayers2x: [] 206 | iOSLaunchScreenType: 0 207 | iOSLaunchScreenPortrait: {fileID: 0} 208 | iOSLaunchScreenLandscape: {fileID: 0} 209 | iOSLaunchScreenBackgroundColor: 210 | serializedVersion: 2 211 | rgba: 0 212 | iOSLaunchScreenFillPct: 100 213 | iOSLaunchScreenSize: 100 214 | iOSLaunchScreenCustomXibPath: 215 | iOSLaunchScreeniPadType: 0 216 | iOSLaunchScreeniPadImage: {fileID: 0} 217 | iOSLaunchScreeniPadBackgroundColor: 218 | serializedVersion: 2 219 | rgba: 0 220 | iOSLaunchScreeniPadFillPct: 100 221 | iOSLaunchScreeniPadSize: 100 222 | iOSLaunchScreeniPadCustomXibPath: 223 | iOSDeviceRequirements: [] 224 | iOSURLSchemes: [] 225 | iOSBackgroundModes: 0 226 | iOSMetalForceHardShadows: 0 227 | metalEditorSupport: 1 228 | metalAPIValidation: 1 229 | iOSRenderExtraFrameOnPause: 0 230 | appleDeveloperTeamID: 231 | iOSManualSigningProvisioningProfileID: 232 | tvOSManualSigningProvisioningProfileID: 233 | appleEnableAutomaticSigning: 0 234 | AndroidTargetDevice: 0 235 | AndroidSplashScreenScale: 0 236 | androidSplashScreen: {fileID: 0} 237 | AndroidKeystoreName: 238 | AndroidKeyaliasName: 239 | AndroidTVCompatibility: 1 240 | AndroidIsGame: 1 241 | AndroidEnableTango: 0 242 | androidEnableBanner: 1 243 | androidUseLowAccuracyLocation: 0 244 | m_AndroidBanners: 245 | - width: 320 246 | height: 180 247 | banner: {fileID: 0} 248 | androidGamepadSupportLevel: 0 249 | resolutionDialogBanner: {fileID: 0} 250 | m_BuildTargetIcons: [] 251 | m_BuildTargetBatching: [] 252 | m_BuildTargetGraphicsAPIs: [] 253 | m_BuildTargetVRSettings: 254 | - m_BuildTarget: Metro 255 | m_Enabled: 1 256 | m_Devices: 257 | - WindowsMR 258 | m_BuildTargetEnableVuforiaSettings: [] 259 | openGLRequireES31: 0 260 | openGLRequireES31AEP: 0 261 | m_TemplateCustomTags: {} 262 | mobileMTRendering: 263 | Android: 1 264 | iPhone: 1 265 | tvOS: 1 266 | wiiUTitleID: 0005000011000000 267 | wiiUGroupID: 00010000 268 | wiiUCommonSaveSize: 4096 269 | wiiUAccountSaveSize: 2048 270 | wiiUOlvAccessKey: 0 271 | wiiUTinCode: 0 272 | wiiUJoinGameId: 0 273 | wiiUJoinGameModeMask: 0000000000000000 274 | wiiUCommonBossSize: 0 275 | wiiUAccountBossSize: 0 276 | wiiUAddOnUniqueIDs: [] 277 | wiiUMainThreadStackSize: 3072 278 | wiiULoaderThreadStackSize: 1024 279 | wiiUSystemHeapSize: 128 280 | wiiUTVStartupScreen: {fileID: 0} 281 | wiiUGamePadStartupScreen: {fileID: 0} 282 | wiiUDrcBufferDisabled: 0 283 | wiiUProfilerLibPath: 284 | playModeTestRunnerEnabled: 0 285 | actionOnDotNetUnhandledException: 1 286 | enableInternalProfiler: 0 287 | logObjCUncaughtExceptions: 1 288 | enableCrashReportAPI: 0 289 | cameraUsageDescription: 290 | locationUsageDescription: 291 | microphoneUsageDescription: 292 | switchNetLibKey: 293 | switchSocketMemoryPoolSize: 6144 294 | switchSocketAllocatorPoolSize: 128 295 | switchSocketConcurrencyLimit: 14 296 | switchScreenResolutionBehavior: 2 297 | switchUseCPUProfiler: 0 298 | switchApplicationID: 0x01004b9000490000 299 | switchNSODependencies: 300 | switchTitleNames_0: 301 | switchTitleNames_1: 302 | switchTitleNames_2: 303 | switchTitleNames_3: 304 | switchTitleNames_4: 305 | switchTitleNames_5: 306 | switchTitleNames_6: 307 | switchTitleNames_7: 308 | switchTitleNames_8: 309 | switchTitleNames_9: 310 | switchTitleNames_10: 311 | switchTitleNames_11: 312 | switchTitleNames_12: 313 | switchTitleNames_13: 314 | switchTitleNames_14: 315 | switchPublisherNames_0: 316 | switchPublisherNames_1: 317 | switchPublisherNames_2: 318 | switchPublisherNames_3: 319 | switchPublisherNames_4: 320 | switchPublisherNames_5: 321 | switchPublisherNames_6: 322 | switchPublisherNames_7: 323 | switchPublisherNames_8: 324 | switchPublisherNames_9: 325 | switchPublisherNames_10: 326 | switchPublisherNames_11: 327 | switchPublisherNames_12: 328 | switchPublisherNames_13: 329 | switchPublisherNames_14: 330 | switchIcons_0: {fileID: 0} 331 | switchIcons_1: {fileID: 0} 332 | switchIcons_2: {fileID: 0} 333 | switchIcons_3: {fileID: 0} 334 | switchIcons_4: {fileID: 0} 335 | switchIcons_5: {fileID: 0} 336 | switchIcons_6: {fileID: 0} 337 | switchIcons_7: {fileID: 0} 338 | switchIcons_8: {fileID: 0} 339 | switchIcons_9: {fileID: 0} 340 | switchIcons_10: {fileID: 0} 341 | switchIcons_11: {fileID: 0} 342 | switchIcons_12: {fileID: 0} 343 | switchIcons_13: {fileID: 0} 344 | switchIcons_14: {fileID: 0} 345 | switchSmallIcons_0: {fileID: 0} 346 | switchSmallIcons_1: {fileID: 0} 347 | switchSmallIcons_2: {fileID: 0} 348 | switchSmallIcons_3: {fileID: 0} 349 | switchSmallIcons_4: {fileID: 0} 350 | switchSmallIcons_5: {fileID: 0} 351 | switchSmallIcons_6: {fileID: 0} 352 | switchSmallIcons_7: {fileID: 0} 353 | switchSmallIcons_8: {fileID: 0} 354 | switchSmallIcons_9: {fileID: 0} 355 | switchSmallIcons_10: {fileID: 0} 356 | switchSmallIcons_11: {fileID: 0} 357 | switchSmallIcons_12: {fileID: 0} 358 | switchSmallIcons_13: {fileID: 0} 359 | switchSmallIcons_14: {fileID: 0} 360 | switchManualHTML: 361 | switchAccessibleURLs: 362 | switchLegalInformation: 363 | switchMainThreadStackSize: 1048576 364 | switchPresenceGroupId: 365 | switchLogoHandling: 0 366 | switchReleaseVersion: 0 367 | switchDisplayVersion: 1.0.0 368 | switchStartupUserAccount: 0 369 | switchTouchScreenUsage: 0 370 | switchSupportedLanguagesMask: 0 371 | switchLogoType: 0 372 | switchApplicationErrorCodeCategory: 373 | switchUserAccountSaveDataSize: 0 374 | switchUserAccountSaveDataJournalSize: 0 375 | switchApplicationAttribute: 0 376 | switchCardSpecSize: -1 377 | switchCardSpecClock: -1 378 | switchRatingsMask: 0 379 | switchRatingsInt_0: 0 380 | switchRatingsInt_1: 0 381 | switchRatingsInt_2: 0 382 | switchRatingsInt_3: 0 383 | switchRatingsInt_4: 0 384 | switchRatingsInt_5: 0 385 | switchRatingsInt_6: 0 386 | switchRatingsInt_7: 0 387 | switchRatingsInt_8: 0 388 | switchRatingsInt_9: 0 389 | switchRatingsInt_10: 0 390 | switchRatingsInt_11: 0 391 | switchLocalCommunicationIds_0: 392 | switchLocalCommunicationIds_1: 393 | switchLocalCommunicationIds_2: 394 | switchLocalCommunicationIds_3: 395 | switchLocalCommunicationIds_4: 396 | switchLocalCommunicationIds_5: 397 | switchLocalCommunicationIds_6: 398 | switchLocalCommunicationIds_7: 399 | switchParentalControl: 0 400 | switchAllowsScreenshot: 1 401 | switchAllowsVideoCapturing: 1 402 | switchAllowsRuntimeAddOnContentInstall: 0 403 | switchDataLossConfirmation: 0 404 | switchSupportedNpadStyles: 3 405 | switchSocketConfigEnabled: 0 406 | switchTcpInitialSendBufferSize: 32 407 | switchTcpInitialReceiveBufferSize: 64 408 | switchTcpAutoSendBufferSizeMax: 256 409 | switchTcpAutoReceiveBufferSizeMax: 256 410 | switchUdpSendBufferSize: 9 411 | switchUdpReceiveBufferSize: 42 412 | switchSocketBufferEfficiency: 4 413 | switchSocketInitializeEnabled: 1 414 | switchNetworkInterfaceManagerInitializeEnabled: 1 415 | switchPlayerConnectionEnabled: 1 416 | ps4NPAgeRating: 12 417 | ps4NPTitleSecret: 418 | ps4NPTrophyPackPath: 419 | ps4ParentalLevel: 11 420 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 421 | ps4Category: 0 422 | ps4MasterVersion: 01.00 423 | ps4AppVersion: 01.00 424 | ps4AppType: 0 425 | ps4ParamSfxPath: 426 | ps4VideoOutPixelFormat: 0 427 | ps4VideoOutInitialWidth: 1920 428 | ps4VideoOutBaseModeInitialWidth: 1920 429 | ps4VideoOutReprojectionRate: 60 430 | ps4PronunciationXMLPath: 431 | ps4PronunciationSIGPath: 432 | ps4BackgroundImagePath: 433 | ps4StartupImagePath: 434 | ps4SaveDataImagePath: 435 | ps4SdkOverride: 436 | ps4BGMPath: 437 | ps4ShareFilePath: 438 | ps4ShareOverlayImagePath: 439 | ps4PrivacyGuardImagePath: 440 | ps4NPtitleDatPath: 441 | ps4RemotePlayKeyAssignment: -1 442 | ps4RemotePlayKeyMappingDir: 443 | ps4PlayTogetherPlayerCount: 0 444 | ps4EnterButtonAssignment: 1 445 | ps4ApplicationParam1: 0 446 | ps4ApplicationParam2: 0 447 | ps4ApplicationParam3: 0 448 | ps4ApplicationParam4: 0 449 | ps4DownloadDataSize: 0 450 | ps4GarlicHeapSize: 2048 451 | ps4ProGarlicHeapSize: 2560 452 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 453 | ps4pnSessions: 1 454 | ps4pnPresence: 1 455 | ps4pnFriends: 1 456 | ps4pnGameCustomData: 1 457 | playerPrefsSupport: 0 458 | restrictedAudioUsageRights: 0 459 | ps4UseResolutionFallback: 0 460 | ps4ReprojectionSupport: 0 461 | ps4UseAudio3dBackend: 0 462 | ps4SocialScreenEnabled: 0 463 | ps4ScriptOptimizationLevel: 0 464 | ps4Audio3dVirtualSpeakerCount: 14 465 | ps4attribCpuUsage: 0 466 | ps4PatchPkgPath: 467 | ps4PatchLatestPkgPath: 468 | ps4PatchChangeinfoPath: 469 | ps4PatchDayOne: 0 470 | ps4attribUserManagement: 0 471 | ps4attribMoveSupport: 0 472 | ps4attrib3DSupport: 0 473 | ps4attribShareSupport: 0 474 | ps4attribExclusiveVR: 0 475 | ps4disableAutoHideSplash: 0 476 | ps4videoRecordingFeaturesUsed: 0 477 | ps4contentSearchFeaturesUsed: 0 478 | ps4attribEyeToEyeDistanceSettingVR: 0 479 | ps4IncludedModules: [] 480 | monoEnv: 481 | psp2Splashimage: {fileID: 0} 482 | psp2NPTrophyPackPath: 483 | psp2NPSupportGBMorGJP: 0 484 | psp2NPAgeRating: 12 485 | psp2NPTitleDatPath: 486 | psp2NPCommsID: 487 | psp2NPCommunicationsID: 488 | psp2NPCommsPassphrase: 489 | psp2NPCommsSig: 490 | psp2ParamSfxPath: 491 | psp2ManualPath: 492 | psp2LiveAreaGatePath: 493 | psp2LiveAreaBackroundPath: 494 | psp2LiveAreaPath: 495 | psp2LiveAreaTrialPath: 496 | psp2PatchChangeInfoPath: 497 | psp2PatchOriginalPackage: 498 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 499 | psp2KeystoneFile: 500 | psp2MemoryExpansionMode: 0 501 | psp2DRMType: 0 502 | psp2StorageType: 0 503 | psp2MediaCapacity: 0 504 | psp2DLCConfigPath: 505 | psp2ThumbnailPath: 506 | psp2BackgroundPath: 507 | psp2SoundPath: 508 | psp2TrophyCommId: 509 | psp2TrophyPackagePath: 510 | psp2PackagedResourcesPath: 511 | psp2SaveDataQuota: 10240 512 | psp2ParentalLevel: 1 513 | psp2ShortTitle: Not Set 514 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 515 | psp2Category: 0 516 | psp2MasterVersion: 01.00 517 | psp2AppVersion: 01.00 518 | psp2TVBootMode: 0 519 | psp2EnterButtonAssignment: 2 520 | psp2TVDisableEmu: 0 521 | psp2AllowTwitterDialog: 1 522 | psp2Upgradable: 0 523 | psp2HealthWarning: 0 524 | psp2UseLibLocation: 0 525 | psp2InfoBarOnStartup: 0 526 | psp2InfoBarColor: 0 527 | psp2ScriptOptimizationLevel: 0 528 | psmSplashimage: {fileID: 0} 529 | splashScreenBackgroundSourceLandscape: {fileID: 0} 530 | splashScreenBackgroundSourcePortrait: {fileID: 0} 531 | spritePackerPolicy: 532 | webGLMemorySize: 256 533 | webGLExceptionSupport: 1 534 | webGLNameFilesAsHashes: 0 535 | webGLDataCaching: 0 536 | webGLDebugSymbols: 0 537 | webGLEmscriptenArgs: 538 | webGLModulesDirectory: 539 | webGLTemplate: APPLICATION:Default 540 | webGLAnalyzeBuildSize: 0 541 | webGLUseEmbeddedResources: 0 542 | webGLUseWasm: 0 543 | webGLCompressionFormat: 1 544 | scriptingDefineSymbols: {} 545 | platformArchitecture: {} 546 | scriptingBackend: 547 | Metro: 2 548 | incrementalIl2cppBuild: {} 549 | additionalIl2CppArgs: 550 | scriptingRuntimeVersion: 1 551 | apiCompatibilityLevelPerPlatform: {} 552 | m_RenderingPath: 1 553 | m_MobileRenderingPath: 1 554 | metroPackageName: WebRTCTest 555 | metroPackageVersion: 1.0.0.0 556 | metroCertificatePath: Assets\WSATestCertificate.pfx 557 | metroCertificatePassword: 558 | metroCertificateSubject: DefaultCompany 559 | metroCertificateIssuer: DefaultCompany 560 | metroCertificateNotAfter: 8082ecec1dcbd401 561 | metroApplicationDescription: WebRTCTest 562 | wsaImages: {} 563 | metroTileShortName: 564 | metroCommandLineArgsFile: 565 | metroTileShowName: 0 566 | metroMediumTileShowName: 0 567 | metroLargeTileShowName: 0 568 | metroWideTileShowName: 0 569 | metroDefaultTileSize: 1 570 | metroTileForegroundText: 2 571 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 572 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 573 | a: 1} 574 | metroSplashScreenUseBackgroundColor: 0 575 | platformCapabilities: 576 | WindowsStoreApps: 577 | AllJoyn: True 578 | BlockedChatMessages: True 579 | Bluetooth: True 580 | Chat: True 581 | CodeGeneration: True 582 | EnterpriseAuthentication: True 583 | HumanInterfaceDevice: True 584 | InputInjectionBrokered: True 585 | InternetClient: True 586 | InternetClientServer: True 587 | Location: True 588 | Microphone: True 589 | MusicLibrary: True 590 | Objects3D: True 591 | PhoneCall: True 592 | PicturesLibrary: True 593 | PrivateNetworkClientServer: True 594 | Proximity: True 595 | RemovableStorage: True 596 | SharedUserCertificates: True 597 | SpatialPerception: True 598 | UserAccountInformation: True 599 | VideosLibrary: True 600 | VoipCall: True 601 | WebCam: True 602 | metroFTAName: 603 | metroFTAFileTypes: [] 604 | metroProtocolName: 605 | metroCompilationOverrides: 1 606 | tizenProductDescription: 607 | tizenProductURL: 608 | tizenSigningProfileName: 609 | tizenGPSPermissions: 0 610 | tizenMicrophonePermissions: 0 611 | tizenDeploymentTarget: 612 | tizenDeploymentTargetType: -1 613 | tizenMinOSVersion: 1 614 | n3dsUseExtSaveData: 0 615 | n3dsCompressStaticMem: 1 616 | n3dsExtSaveDataNumber: 0x12345 617 | n3dsStackSize: 131072 618 | n3dsTargetPlatform: 2 619 | n3dsRegion: 7 620 | n3dsMediaSize: 0 621 | n3dsLogoStyle: 3 622 | n3dsTitle: GameName 623 | n3dsProductCode: 624 | n3dsApplicationId: 0xFF3FF 625 | stvDeviceAddress: 626 | stvProductDescription: 627 | stvProductAuthor: 628 | stvProductAuthorEmail: 629 | stvProductLink: 630 | stvProductCategory: 0 631 | XboxOneProductId: 632 | XboxOneUpdateKey: 633 | XboxOneSandboxId: 634 | XboxOneContentId: 635 | XboxOneTitleId: 636 | XboxOneSCId: 637 | XboxOneGameOsOverridePath: 638 | XboxOnePackagingOverridePath: 639 | XboxOneAppManifestOverridePath: 640 | XboxOnePackageEncryption: 0 641 | XboxOnePackageUpdateGranularity: 2 642 | XboxOneDescription: 643 | XboxOneLanguage: 644 | - enus 645 | XboxOneCapability: [] 646 | XboxOneGameRating: {} 647 | XboxOneIsContentPackage: 0 648 | XboxOneEnableGPUVariability: 0 649 | XboxOneSockets: {} 650 | XboxOneSplashScreen: {fileID: 0} 651 | XboxOneAllowedProductIds: [] 652 | XboxOnePersistentLocalStorageSize: 0 653 | xboxOneScriptCompiler: 0 654 | vrEditorSettings: 655 | daydream: 656 | daydreamIconForeground: {fileID: 0} 657 | daydreamIconBackground: {fileID: 0} 658 | cloudServicesEnabled: {} 659 | facebookSdkVersion: 7.9.4 660 | apiCompatibilityLevel: 3 661 | cloudProjectId: 662 | projectName: 663 | organizationId: 664 | cloudEnabled: 0 665 | enableNativePlatformBackendsForNewInputSystem: 0 666 | disableOldInputManagerSupport: 0 667 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.2.1p2 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Samsung TV: 2 185 | Standalone: 0 186 | Tizen: 2 187 | WebGL: 3 188 | WiiU: 5 189 | Windows Store Apps: 0 190 | XboxOne: 5 191 | iPhone: 2 192 | tvOS: 2 193 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /WebRTCTest.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {8890CD43-B823-7B58-E9CD-F78B5B8605FC} 9 | Library 10 | Assembly-CSharp 11 | 512 12 | {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 13 | .NETFramework 14 | v4.6 15 | 16 | 17 | Game:1 18 | WSAPlayer:21 19 | 2017.2.1f1 20 | 21 | 6 22 | 23 | 24 | true 25 | true 26 | false 27 | 28 | 29 | pdbonly 30 | false 31 | Temp\UnityVS_bin\Debug\ 32 | Temp\UnityVS_obj\Debug\ 33 | prompt 34 | 4 35 | DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_2_1;UNITY_2017_2;UNITY_2017;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;PLATFORM_METRO;UNITY_METRO;UNITY_METRO_API;PLATFORM_WINRT;UNITY_WINRT;ENABLE_WINRT_PINVOKE;ENABLE_LAZY_METHOD_CACHING;ENABLE_MOVIES;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_NETWORK;ENABLE_EVENT_QUEUE;UNITY_PLATFORM_THREAD_TO_CORE_MAPPING;ENABLE_SUBSTANCE;PLATFORM_SUPPORTS_ADS_ID;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;CURL_STATICLIB;ENABLE_VR;ENABLE_AR;ENABLE_SPATIALTRACKING;UNITY_WSA;ENABLE_DOTNET;ENABLE_PROFILER;UNITY_WSA_10_0;UNITY_WINRT_10_0;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE 36 | true 37 | 38 | 39 | pdbonly 40 | false 41 | Temp\UnityVS_bin\Release\ 42 | Temp\UnityVS_obj\Release\ 43 | prompt 44 | 4 45 | TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_2_1;UNITY_2017_2;UNITY_2017;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;PLATFORM_METRO;UNITY_METRO;UNITY_METRO_API;PLATFORM_WINRT;UNITY_WINRT;ENABLE_WINRT_PINVOKE;ENABLE_LAZY_METHOD_CACHING;ENABLE_MOVIES;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_NETWORK;ENABLE_EVENT_QUEUE;UNITY_PLATFORM_THREAD_TO_CORE_MAPPING;ENABLE_SUBSTANCE;PLATFORM_SUPPORTS_ADS_ID;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;CURL_STATICLIB;ENABLE_VR;ENABLE_AR;ENABLE_SPATIALTRACKING;UNITY_WSA;ENABLE_DOTNET;ENABLE_PROFILER;UNITY_WSA_10_0;UNITY_WINRT_10_0;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE 46 | true 47 | 48 | 49 | 50 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\mscorlib.dll 51 | 52 | 53 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.dll 54 | 55 | 56 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.XML.dll 57 | 58 | 59 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.Core.dll 60 | 61 | 62 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\Microsoft.CSharp.dll 63 | 64 | 65 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.Runtime.Serialization.dll 66 | 67 | 68 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.Xml.Linq.dll 69 | 70 | 71 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/Managed/UnityEditor.dll 72 | 73 | 74 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.dll 75 | 76 | 77 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.CoreModule.dll 78 | 79 | 80 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AccessibilityModule.dll 81 | 82 | 83 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ParticleSystemModule.dll 84 | 85 | 86 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.PhysicsModule.dll 87 | 88 | 89 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.VehiclesModule.dll 90 | 91 | 92 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ClothModule.dll 93 | 94 | 95 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AIModule.dll 96 | 97 | 98 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AnimationModule.dll 99 | 100 | 101 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TextRenderingModule.dll 102 | 103 | 104 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UIModule.dll 105 | 106 | 107 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TerrainPhysicsModule.dll 108 | 109 | 110 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.IMGUIModule.dll 111 | 112 | 113 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestModule.dll 114 | 115 | 116 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestAudioModule.dll 117 | 118 | 119 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestTextureModule.dll 120 | 121 | 122 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestWWWModule.dll 123 | 124 | 125 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UNETModule.dll 126 | 127 | 128 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.DirectorModule.dll 129 | 130 | 131 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityAnalyticsModule.dll 132 | 133 | 134 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.CrashReportingModule.dll 135 | 136 | 137 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.PerformanceReportingModule.dll 138 | 139 | 140 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityConnectModule.dll 141 | 142 | 143 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.WebModule.dll 144 | 145 | 146 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ARModule.dll 147 | 148 | 149 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.VRModule.dll 150 | 151 | 152 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UIElementsModule.dll 153 | 154 | 155 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.StyleSheetsModule.dll 156 | 157 | 158 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AudioModule.dll 159 | 160 | 161 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.GameCenterModule.dll 162 | 163 | 164 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.GridModule.dll 165 | 166 | 167 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ImageConversionModule.dll 168 | 169 | 170 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.InputModule.dll 171 | 172 | 173 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.JSONSerializeModule.dll 174 | 175 | 176 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ParticlesLegacyModule.dll 177 | 178 | 179 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.Physics2DModule.dll 180 | 181 | 182 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ScreenCaptureModule.dll 183 | 184 | 185 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.SpriteMaskModule.dll 186 | 187 | 188 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TerrainModule.dll 189 | 190 | 191 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TilemapModule.dll 192 | 193 | 194 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.VideoModule.dll 195 | 196 | 197 | C:\Program Files\Unity 2017.2.1f1\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.WindModule.dll 198 | 199 | 200 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/PlaybackEngines/VuforiaSupport/Managed/Runtime/Vuforia.UnityExtensions.dll 201 | 202 | 203 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 204 | 205 | 206 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll 207 | 208 | 209 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/TestRunner/UnityEngine.TestRunner.dll 210 | 211 | 212 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/TestRunner/net35/unity-custom/nunit.framework.dll 213 | 214 | 215 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll 216 | 217 | 218 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/UIAutomation/UnityEngine.UIAutomation.dll 219 | 220 | 221 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll 222 | 223 | 224 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll 225 | 226 | 227 | C:/Program Files/Unity 2017.2.1f1/Editor/Data/UnityExtensions/Unity/UnitySpatialTracking/RuntimeEditor/UnityEngine.SpatialTracking.dll 228 | 229 | 230 | C:/Users/peted/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.analytics@1.0.1/UnityEngine.Analytics.dll 231 | 232 | 233 | C:/Users/peted/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.purchasing@1.0.1/UnityEngine.Purchasing.dll 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | -------------------------------------------------------------------------------- /WebRTCTest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2017 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebRTCTest", "WebRTCTest.csproj", "{8890CD43-B823-7B58-E9CD-F78B5B8605FC}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {8890CD43-B823-7B58-E9CD-F78B5B8605FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {8890CD43-B823-7B58-E9CD-F78B5B8605FC}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {8890CD43-B823-7B58-E9CD-F78B5B8605FC}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {8890CD43-B823-7B58-E9CD-F78B5B8605FC}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /web-rtc-test-latest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2017 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "web-rtc-test-latest", "web-rtc-test-latest.csproj", "{0C3E3707-D71A-CAA1-DB19-669192E77C0F}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {0C3E3707-D71A-CAA1-DB19-669192E77C0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {0C3E3707-D71A-CAA1-DB19-669192E77C0F}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {0C3E3707-D71A-CAA1-DB19-669192E77C0F}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {0C3E3707-D71A-CAA1-DB19-669192E77C0F}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /web-rtc-test.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {D523362A-3497-4C26-5CDB-34C58884F8DB} 9 | Library 10 | Assembly-CSharp 11 | 512 12 | {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 13 | .NETFramework 14 | v4.6 15 | 16 | 17 | Game:1 18 | WSAPlayer:21 19 | 2017.3.0f3 20 | 21 | 6 22 | 23 | 24 | true 25 | true 26 | false 27 | 28 | 29 | pdbonly 30 | false 31 | Temp\UnityVS_bin\Debug\ 32 | Temp\UnityVS_obj\Debug\ 33 | prompt 34 | 4 35 | DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_3_0;UNITY_2017_3;UNITY_2017;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;ENABLE_LOCALIZATION;PLATFORM_METRO;UNITY_METRO;UNITY_METRO_API;PLATFORM_WINRT;UNITY_WINRT;ENABLE_WINRT_PINVOKE;ENABLE_LAZY_METHOD_CACHING;ENABLE_MOVIES;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_NETWORK;ENABLE_EVENT_QUEUE;UNITY_PLATFORM_THREAD_TO_CORE_MAPPING;ENABLE_SUBSTANCE;PLATFORM_SUPPORTS_ADS_ID;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;CURL_STATICLIB;ENABLE_VR;ENABLE_AR;UNITY_WSA;ENABLE_DOTNET;ENABLE_PROFILER;UNITY_WSA_10_0;UNITY_WINRT_10_0;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE 36 | true 37 | 38 | 39 | pdbonly 40 | false 41 | Temp\UnityVS_bin\Release\ 42 | Temp\UnityVS_obj\Release\ 43 | prompt 44 | 4 45 | TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_3_0;UNITY_2017_3;UNITY_2017;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;ENABLE_LOCALIZATION;PLATFORM_METRO;UNITY_METRO;UNITY_METRO_API;PLATFORM_WINRT;UNITY_WINRT;ENABLE_WINRT_PINVOKE;ENABLE_LAZY_METHOD_CACHING;ENABLE_MOVIES;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_NETWORK;ENABLE_EVENT_QUEUE;UNITY_PLATFORM_THREAD_TO_CORE_MAPPING;ENABLE_SUBSTANCE;PLATFORM_SUPPORTS_ADS_ID;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;CURL_STATICLIB;ENABLE_VR;ENABLE_AR;UNITY_WSA;ENABLE_DOTNET;ENABLE_PROFILER;UNITY_WSA_10_0;UNITY_WINRT_10_0;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE 46 | true 47 | 48 | 49 | 50 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\mscorlib.dll 51 | 52 | 53 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.dll 54 | 55 | 56 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.XML.dll 57 | 58 | 59 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.Core.dll 60 | 61 | 62 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\Microsoft.CSharp.dll 63 | 64 | 65 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.Runtime.Serialization.dll 66 | 67 | 68 | C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.6-api\System.Xml.Linq.dll 69 | 70 | 71 | C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll 72 | 73 | 74 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.dll 75 | 76 | 77 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.CoreModule.dll 78 | 79 | 80 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AccessibilityModule.dll 81 | 82 | 83 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ParticleSystemModule.dll 84 | 85 | 86 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.PhysicsModule.dll 87 | 88 | 89 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.VehiclesModule.dll 90 | 91 | 92 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ClothModule.dll 93 | 94 | 95 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AIModule.dll 96 | 97 | 98 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AnimationModule.dll 99 | 100 | 101 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TextRenderingModule.dll 102 | 103 | 104 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UIModule.dll 105 | 106 | 107 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TerrainPhysicsModule.dll 108 | 109 | 110 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.IMGUIModule.dll 111 | 112 | 113 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UNETModule.dll 114 | 115 | 116 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.DirectorModule.dll 117 | 118 | 119 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityAnalyticsModule.dll 120 | 121 | 122 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.PerformanceReportingModule.dll 123 | 124 | 125 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityConnectModule.dll 126 | 127 | 128 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.WebModule.dll 129 | 130 | 131 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ARModule.dll 132 | 133 | 134 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.VRModule.dll 135 | 136 | 137 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UIElementsModule.dll 138 | 139 | 140 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.StyleSheetsModule.dll 141 | 142 | 143 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AssetBundleModule.dll 144 | 145 | 146 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.AudioModule.dll 147 | 148 | 149 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.CrashReportingModule.dll 150 | 151 | 152 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.GameCenterModule.dll 153 | 154 | 155 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.GridModule.dll 156 | 157 | 158 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ImageConversionModule.dll 159 | 160 | 161 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.InputModule.dll 162 | 163 | 164 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.JSONSerializeModule.dll 165 | 166 | 167 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ParticlesLegacyModule.dll 168 | 169 | 170 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.Physics2DModule.dll 171 | 172 | 173 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.ScreenCaptureModule.dll 174 | 175 | 176 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.SharedInternalsModule.dll 177 | 178 | 179 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.SpriteMaskModule.dll 180 | 181 | 182 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.SpriteShapeModule.dll 183 | 184 | 185 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TerrainModule.dll 186 | 187 | 188 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.TilemapModule.dll 189 | 190 | 191 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestModule.dll 192 | 193 | 194 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestAudioModule.dll 195 | 196 | 197 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestTextureModule.dll 198 | 199 | 200 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.UnityWebRequestWWWModule.dll 201 | 202 | 203 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.VideoModule.dll 204 | 205 | 206 | C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport/Tools/UnityEngine.WindModule.dll 207 | 208 | 209 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 210 | 211 | 212 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Editor/UnityEditor.UI.dll 213 | 214 | 215 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll 216 | 217 | 218 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/Editor/UnityEditor.Networking.dll 219 | 220 | 221 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/Editor/UnityEditor.TestRunner.dll 222 | 223 | 224 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/UnityEngine.TestRunner.dll 225 | 226 | 227 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/net35/unity-custom/nunit.framework.dll 228 | 229 | 230 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll 231 | 232 | 233 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/Editor/UnityEditor.Timeline.dll 234 | 235 | 236 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TreeEditor/Editor/UnityEditor.TreeEditor.dll 237 | 238 | 239 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UIAutomation/UnityEngine.UIAutomation.dll 240 | 241 | 242 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UIAutomation/Editor/UnityEditor.UIAutomation.dll 243 | 244 | 245 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/Editor/UnityEditor.GoogleAudioSpatializer.dll 246 | 247 | 248 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll 249 | 250 | 251 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/Editor/UnityEditor.HoloLens.dll 252 | 253 | 254 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll 255 | 256 | 257 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnitySpatialTracking/Editor/UnityEditor.SpatialTracking.dll 258 | 259 | 260 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnitySpatialTracking/RuntimeEditor/UnityEngine.SpatialTracking.dll 261 | 262 | 263 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll 264 | 265 | 266 | C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll 267 | 268 | 269 | C:/Program Files/Unity/Editor/Data/PlaybackEngines/MetroSupport/UnityEditor.WSA.Extensions.dll 270 | 271 | 272 | C:/Program Files/Unity/Editor/Data/PlaybackEngines/windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll 273 | 274 | 275 | C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/15.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll 276 | 277 | 278 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.ads@2.0.3/UnityEngine.Advertisements.dll 279 | 280 | 281 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.ads@2.0.3/Editor/UnityEditor.Advertisements.dll 282 | 283 | 284 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.analytics@2.0.13/UnityEngine.Analytics.dll 285 | 286 | 287 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.analytics@2.0.13/Editor/UnityEditor.Analytics.dll 288 | 289 | 290 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.purchasing@0.0.19/UnityEngine.Purchasing.dll 291 | 292 | 293 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.purchasing@0.0.19/Editor/UnityEditor.Purchasing.dll 294 | 295 | 296 | C:/Users/mtaulty/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.standardevents@1.0.10/UnityEngine.StandardEvents.dll 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | -------------------------------------------------------------------------------- /web-rtc-test.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2017 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "web-rtc-test", "web-rtc-test.csproj", "{D523362A-3497-4C26-5CDB-34C58884F8DB}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {D523362A-3497-4C26-5CDB-34C58884F8DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {D523362A-3497-4C26-5CDB-34C58884F8DB}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {D523362A-3497-4C26-5CDB-34C58884F8DB}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {D523362A-3497-4C26-5CDB-34C58884F8DB}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | --------------------------------------------------------------------------------