├── .gitignore ├── README.md └── src ├── Mobile ├── Sayranet.WebRTC.Mobile.Android │ ├── Assets │ │ └── AboutAssets.txt │ ├── MainActivity.cs │ ├── Properties │ │ ├── AndroidManifest.xml │ │ └── AssemblyInfo.cs │ ├── Resources │ │ ├── AboutResources.txt │ │ ├── Resource.designer.cs │ │ ├── layout │ │ │ ├── Tabbar.axml │ │ │ └── Toolbar.axml │ │ ├── mipmap-anydpi-v26 │ │ │ ├── icon.xml │ │ │ └── icon_round.xml │ │ ├── mipmap-hdpi │ │ │ ├── Icon.png │ │ │ └── launcher_foreground.png │ │ ├── mipmap-mdpi │ │ │ ├── icon.png │ │ │ └── launcher_foreground.png │ │ ├── mipmap-xhdpi │ │ │ ├── Icon.png │ │ │ └── launcher_foreground.png │ │ ├── mipmap-xxhdpi │ │ │ ├── Icon.png │ │ │ └── launcher_foreground.png │ │ ├── mipmap-xxxhdpi │ │ │ ├── Icon.png │ │ │ └── launcher_foreground.png │ │ └── values │ │ │ ├── colors.xml │ │ │ └── styles.xml │ └── Sayranet.WebRTC.Mobile.Android.csproj ├── Sayranet.WebRTC.Mobile.UWP │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LargeTile.scale-100.png │ │ ├── LargeTile.scale-200.png │ │ ├── LargeTile.scale-400.png │ │ ├── SmallTile.scale-100.png │ │ ├── SmallTile.scale-200.png │ │ ├── SmallTile.scale-400.png │ │ ├── SplashScreen.scale-100.png │ │ ├── SplashScreen.scale-200.png │ │ ├── SplashScreen.scale-400.png │ │ ├── Square150x150Logo.scale-100.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-400.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-256.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png │ │ ├── Square44x44Logo.scale-100.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.scale-400.png │ │ ├── Square44x44Logo.targetsize-16.png │ │ ├── Square44x44Logo.targetsize-256.png │ │ ├── Square44x44Logo.targetsize-48.png │ │ ├── StoreLogo.backup.png │ │ ├── StoreLogo.scale-100.png │ │ ├── StoreLogo.scale-200.png │ │ ├── StoreLogo.scale-400.png │ │ ├── Wide310x150Logo.scale-100.png │ │ ├── Wide310x150Logo.scale-200.png │ │ └── Wide310x150Logo.scale-400.png │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── Sayranet.WebRTC.Mobile.UWP.csproj │ └── WebRtcViewRenderer.cs ├── Sayranet.WebRTC.Mobile.iOS │ ├── AppDelegate.cs │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon1024.png │ │ │ ├── Icon120.png │ │ │ ├── Icon152.png │ │ │ ├── Icon167.png │ │ │ ├── Icon180.png │ │ │ ├── Icon20.png │ │ │ ├── Icon29.png │ │ │ ├── Icon40.png │ │ │ ├── Icon58.png │ │ │ ├── Icon60.png │ │ │ ├── Icon76.png │ │ │ ├── Icon80.png │ │ │ └── Icon87.png │ ├── Entitlements.plist │ ├── Info.plist │ ├── Main.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Resources │ │ ├── Default-568h@2x.png │ │ ├── Default-Portrait.png │ │ ├── Default-Portrait@2x.png │ │ ├── Default.png │ │ ├── Default@2x.png │ │ └── LaunchScreen.storyboard │ └── Sayranet.WebRTC.Mobile.iOS.csproj └── Sayranet.WebRTC.Mobile │ ├── App.xaml │ ├── App.xaml.cs │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Sayranet.WebRTC.Mobile.csproj │ ├── WebRTCPage.xaml │ ├── WebRTCPage.xaml.cs │ └── WebRtcView.cs ├── Sayranet.WebRTC.Common ├── Models │ ├── GroupMessage.cs │ ├── GroupWebRTCIceCandidate.cs │ ├── GroupWebRTCSDP.cs │ ├── WebRTCIceCandidate.cs │ └── WebRTCSDP.cs └── Sayranet.WebRTC.Common.csproj ├── Sayranet.WebRTC.sln ├── Signaling ├── Controllers │ └── ValuesController.cs ├── Hubs │ └── ChatHub.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── Sayranet.WebRTC.Signaling.csproj ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json ├── web.config └── wwwroot │ └── index.html └── Web ├── .gitignore ├── ClientApp ├── boot.tsx ├── components │ ├── Home.tsx │ ├── Layout.tsx │ ├── NavMenu.tsx │ └── WebRtc.tsx ├── css │ └── site.css ├── models │ └── ChatMessage.ts ├── routes.tsx ├── services │ └── ChatWebsocketService.tsx └── types │ └── WebRtc.d.ts ├── Controllers └── HomeController.cs ├── Program.cs ├── Sayranet.WebRTC.WebReact.csproj ├── Startup.cs ├── Views ├── Home │ └── Index.cshtml ├── Shared │ ├── Error.cshtml │ └── _Layout.cshtml ├── _ViewImports.cshtml └── _ViewStart.cshtml ├── appsettings.Development.json ├── appsettings.json ├── npm-shrinkwrap.json ├── package.json ├── tsconfig.json ├── web.config ├── webpack.config.js ├── webpack.config.vendor.js └── wwwroot └── favicon.ico /.gitignore: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # This .gitignore file was automatically created by Microsoft(R) Visual Studio. 3 | ################################################################################ 4 | 5 | ## Ignore Visual Studio temporary files, build results, and 6 | ## files generated by popular Visual Studio add-ons. 7 | 8 | # User-specific files 9 | *.suo 10 | *.user 11 | *.userosscache 12 | *.sln.docstates 13 | 14 | # User-specific files (MonoDevelop/Xamarin Studio) 15 | *.userprefs 16 | 17 | # Build results 18 | [Dd]ebug/ 19 | [Dd]ebugPublic/ 20 | [Rr]elease/ 21 | [Rr]eleases/ 22 | x64/ 23 | x86/ 24 | bld/ 25 | [Bb]in/ 26 | [Oo]bj/ 27 | [Ll]og/ 28 | 29 | # Visual Studio 2015 cache/options directory 30 | .vs/ 31 | # Uncomment if you have tasks that create the project's static files in wwwroot 32 | #wwwroot/ 33 | 34 | # MSTest test Results 35 | [Tt]est[Rr]esult*/ 36 | [Bb]uild[Ll]og.* 37 | 38 | # NUNIT 39 | *.VisualState.xml 40 | TestResult.xml 41 | 42 | # Build Results of an ATL Project 43 | [Dd]ebugPS/ 44 | [Rr]eleasePS/ 45 | dlldata.c 46 | 47 | # DNX 48 | project.lock.json 49 | project.fragment.lock.json 50 | artifacts/ 51 | 52 | *_i.c 53 | *_p.c 54 | *_i.h 55 | *.ilk 56 | *.meta 57 | *.obj 58 | *.pch 59 | *.pdb 60 | *.pgc 61 | *.pgd 62 | *.rsp 63 | *.sbr 64 | *.tlb 65 | *.tli 66 | *.tlh 67 | *.tmp 68 | *.tmp_proj 69 | *.log 70 | *.vspscc 71 | *.vssscc 72 | .builds 73 | *.pidb 74 | *.svclog 75 | *.scc 76 | 77 | # Chutzpah Test files 78 | _Chutzpah* 79 | 80 | # Visual C++ cache files 81 | ipch/ 82 | *.aps 83 | *.ncb 84 | *.opendb 85 | *.opensdf 86 | *.sdf 87 | *.cachefile 88 | *.VC.db 89 | *.VC.VC.opendb 90 | 91 | # Visual Studio profiler 92 | *.psess 93 | *.vsp 94 | *.vspx 95 | *.sap 96 | 97 | # TFS 2012 Local Workspace 98 | $tf/ 99 | 100 | # Guidance Automation Toolkit 101 | *.gpState 102 | 103 | # ReSharper is a .NET coding add-in 104 | _ReSharper*/ 105 | *.[Rr]e[Ss]harper 106 | *.DotSettings.user 107 | 108 | # JustCode is a .NET coding add-in 109 | .JustCode 110 | 111 | # TeamCity is a build add-in 112 | _TeamCity* 113 | 114 | # DotCover is a Code Coverage Tool 115 | *.dotCover 116 | 117 | # NCrunch 118 | _NCrunch_* 119 | .*crunch*.local.xml 120 | nCrunchTemp_* 121 | 122 | # MightyMoose 123 | *.mm.* 124 | AutoTest.Net/ 125 | 126 | # Web workbench (sass) 127 | .sass-cache/ 128 | 129 | # Installshield output folder 130 | [Ee]xpress/ 131 | 132 | # DocProject is a documentation generator add-in 133 | DocProject/buildhelp/ 134 | DocProject/Help/*.HxT 135 | DocProject/Help/*.HxC 136 | DocProject/Help/*.hhc 137 | DocProject/Help/*.hhk 138 | DocProject/Help/*.hhp 139 | DocProject/Help/Html2 140 | DocProject/Help/html 141 | 142 | # Click-Once directory 143 | publish/ 144 | 145 | # Publish Web Output 146 | *.[Pp]ublish.xml 147 | *.azurePubxml 148 | # TODO: Comment the next line if you want to checkin your web deploy settings 149 | # but database connection strings (with potential passwords) will be unencrypted 150 | *.pubxml 151 | *.publishproj 152 | 153 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 154 | # checkin your Azure Web App publish settings, but sensitive information contained 155 | # in these scripts will be unencrypted 156 | PublishScripts/ 157 | 158 | # NuGet Packages 159 | *.nupkg 160 | # The packages folder can be ignored because of Package Restore 161 | **/packages/* 162 | # except build/, which is used as an MSBuild target. 163 | !**/packages/build/ 164 | # Uncomment if necessary however generally it will be regenerated when needed 165 | #!**/packages/repositories.config 166 | # NuGet v3's project.json files produces more ignoreable files 167 | *.nuget.props 168 | *.nuget.targets 169 | 170 | # Microsoft Azure Build Output 171 | csx/ 172 | *.build.csdef 173 | 174 | # Microsoft Azure Emulator 175 | ecf/ 176 | rcf/ 177 | 178 | # Windows Store app package directories and files 179 | AppPackages/ 180 | BundleArtifacts/ 181 | Package.StoreAssociation.xml 182 | _pkginfo.txt 183 | 184 | # Visual Studio cache files 185 | # files ending in .cache can be ignored 186 | *.[Cc]ache 187 | # but keep track of directories ending in .cache 188 | !*.[Cc]ache/ 189 | 190 | # Others 191 | ClientBin/ 192 | ~$* 193 | *~ 194 | *.dbmdl 195 | *.dbproj.schemaview 196 | *.jfm 197 | *.pfx 198 | *.publishsettings 199 | node_modules/ 200 | orleans.codegen.cs 201 | 202 | # Since there are multiple workflows, uncomment next line to ignore bower_components 203 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 204 | #bower_components/ 205 | 206 | # RIA/Silverlight projects 207 | Generated_Code/ 208 | 209 | # Backup & report files from converting an old project file 210 | # to a newer Visual Studio version. Backup files are not needed, 211 | # because we have git ;-) 212 | _UpgradeReport_Files/ 213 | Backup*/ 214 | UpgradeLog*.XML 215 | UpgradeLog*.htm 216 | 217 | # SQL Server files 218 | *.mdf 219 | *.ldf 220 | 221 | # Business Intelligence projects 222 | *.rdl.data 223 | *.bim.layout 224 | *.bim_*.settings 225 | 226 | # Microsoft Fakes 227 | FakesAssemblies/ 228 | 229 | # GhostDoc plugin setting file 230 | *.GhostDoc.xml 231 | 232 | # Node.js Tools for Visual Studio 233 | .ntvs_analysis.dat 234 | 235 | # Visual Studio 6 build log 236 | *.plg 237 | 238 | # Visual Studio 6 workspace options file 239 | *.opt 240 | 241 | # Visual Studio LightSwitch build output 242 | **/*.HTMLClient/GeneratedArtifacts 243 | **/*.DesktopClient/GeneratedArtifacts 244 | **/*.DesktopClient/ModelManifest.xml 245 | **/*.Server/GeneratedArtifacts 246 | **/*.Server/ModelManifest.xml 247 | _Pvt_Extensions 248 | 249 | # Paket dependency manager 250 | .paket/paket.exe 251 | paket-files/ 252 | 253 | # FAKE - F# Make 254 | .fake/ 255 | 256 | # JetBrains Rider 257 | .idea/ 258 | *.sln.iml 259 | 260 | # CodeRush 261 | .cr/ 262 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WebRtc (Web React, UWP) 2 | WebRTC project with ASP.NET Core SignalR, Web + UWP 3 | 4 | 5 | ## UWP 6 | Thanks for part of information for this example: 7 | https://gitlab.ida.liu.se/lilbl552/UWP_WebRTC_NoSignalling/tree/master
8 | https://github.com/webrtc-uwp/PeerCC-Sample -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content.PM; 5 | using Android.Runtime; 6 | using Android.Views; 7 | using Android.Widget; 8 | using Android.OS; 9 | 10 | namespace Sayranet.WebRTC.Mobile.Droid 11 | { 12 | [Activity(Label = "Sayranet.WebRTC.Mobile", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 14 | { 15 | protected override void OnCreate(Bundle bundle) 16 | { 17 | TabLayoutResource = Resource.Layout.Tabbar; 18 | ToolbarResource = Resource.Layout.Toolbar; 19 | 20 | base.OnCreate(bundle); 21 | 22 | global::Xamarin.Forms.Forms.Init(this, bundle); 23 | LoadApplication(new App()); 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Sayranet.WebRTC.Mobile.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("Sayranet.WebRTC.Mobile.Android")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | 32 | // Add some common permissions, these can be removed if not needed 33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 35 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.xml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable-hdpi/ 12 | icon.png 13 | 14 | drawable-ldpi/ 15 | icon.png 16 | 17 | drawable-mdpi/ 18 | icon.png 19 | 20 | layout/ 21 | main.xml 22 | 23 | values/ 24 | strings.xml 25 | 26 | In order to get the build system to recognize Android resources, set the build action to 27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 28 | instead operate on resource IDs. When you compile an Android application that uses resources, 29 | the build system will package the resources for distribution and generate a class called 30 | "Resource" that contains the tokens for each one of the resources included. For example, 31 | for the above Resources layout, this is what the Resource class would expose: 32 | 33 | public class Resource { 34 | public class drawable { 35 | public const int icon = 0x123; 36 | } 37 | 38 | public class layout { 39 | public const int main = 0x456; 40 | } 41 | 42 | public class strings { 43 | public const int first_string = 0xabc; 44 | public const int second_string = 0xbcd; 45 | } 46 | } 47 | 48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main 49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first 50 | string in the dictionary file values/strings.xml. 51 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-anydpi-v26/icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-anydpi-v26/icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-hdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-hdpi/Icon.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-hdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-hdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-mdpi/icon.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-mdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-mdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xhdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xhdpi/Icon.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxhdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxhdpi/Icon.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxxhdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxxhdpi/Icon.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | #3F51B5 5 | #303F9F 6 | #FF4081 7 | 8 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 26 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.Android/Sayranet.WebRTC.Mobile.Android.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {08FDEBD6-AB71-4D72-9868-EB715215C19A} 7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df} 9 | Library 10 | Sayranet.WebRTC.Mobile.Droid 11 | Sayranet.WebRTC.Mobile.Android 12 | True 13 | Resources\Resource.designer.cs 14 | Resource 15 | Properties\AndroidManifest.xml 16 | Resources 17 | Assets 18 | false 19 | v7.1 20 | 21 | 22 | 23 | 24 | true 25 | full 26 | false 27 | bin\Debug 28 | DEBUG; 29 | prompt 30 | 4 31 | None 32 | 33 | 34 | true 35 | pdbonly 36 | true 37 | bin\Release 38 | prompt 39 | 4 40 | true 41 | false 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | {CE018EB0-0387-4C05-83D8-AAF11DD16202} 96 | Sayranet.WebRTC.Mobile 97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.ApplicationModel; 7 | using Windows.ApplicationModel.Activation; 8 | using Windows.Foundation; 9 | using Windows.Foundation.Collections; 10 | using Windows.UI.Xaml; 11 | using Windows.UI.Xaml.Controls; 12 | using Windows.UI.Xaml.Controls.Primitives; 13 | using Windows.UI.Xaml.Data; 14 | using Windows.UI.Xaml.Input; 15 | using Windows.UI.Xaml.Media; 16 | using Windows.UI.Xaml.Navigation; 17 | 18 | namespace Sayranet.WebRTC.Mobile.UWP 19 | { 20 | /// 21 | /// Provides application-specific behavior to supplement the default Application class. 22 | /// 23 | sealed partial class App : Application 24 | { 25 | /// 26 | /// Initializes the singleton application object. This is the first line of authored code 27 | /// executed, and as such is the logical equivalent of main() or WinMain(). 28 | /// 29 | public App() 30 | { 31 | this.InitializeComponent(); 32 | this.Suspending += OnSuspending; 33 | } 34 | 35 | /// 36 | /// Invoked when the application is launched normally by the end user. Other entry points 37 | /// will be used such as when the application is launched to open a specific file. 38 | /// 39 | /// Details about the launch request and process. 40 | protected override void OnLaunched(LaunchActivatedEventArgs e) 41 | { 42 | 43 | 44 | Frame rootFrame = Window.Current.Content as Frame; 45 | 46 | // Do not repeat app initialization when the Window already has content, 47 | // just ensure that the window is active 48 | if (rootFrame == null) 49 | { 50 | // Create a Frame to act as the navigation context and navigate to the first page 51 | rootFrame = new Frame(); 52 | 53 | rootFrame.NavigationFailed += OnNavigationFailed; 54 | 55 | Xamarin.Forms.Forms.Init(e); 56 | 57 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 58 | { 59 | //TODO: Load state from previously suspended application 60 | } 61 | 62 | // Place the frame in the current Window 63 | Window.Current.Content = rootFrame; 64 | } 65 | 66 | if (rootFrame.Content == null) 67 | { 68 | // When the navigation stack isn't restored navigate to the first page, 69 | // configuring the new page by passing required information as a navigation 70 | // parameter 71 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 72 | } 73 | // Ensure the current window is active 74 | Window.Current.Activate(); 75 | } 76 | 77 | /// 78 | /// Invoked when Navigation to a certain page fails 79 | /// 80 | /// The Frame which failed navigation 81 | /// Details about the navigation failure 82 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 83 | { 84 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 85 | } 86 | 87 | /// 88 | /// Invoked when application execution is being suspended. Application state is saved 89 | /// without knowing whether the application will be terminated or resumed with the contents 90 | /// of memory still intact. 91 | /// 92 | /// The source of the suspend request. 93 | /// Details about the suspend request. 94 | private void OnSuspending(object sender, SuspendingEventArgs e) 95 | { 96 | var deferral = e.SuspendingOperation.GetDeferral(); 97 | //TODO: Save application state and stop any background activity 98 | deferral.Complete(); 99 | } 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/LargeTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/LargeTile.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/LargeTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/LargeTile.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/LargeTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/LargeTile.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SmallTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SmallTile.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SmallTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SmallTile.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SmallTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SmallTile.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.targetsize-16.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.targetsize-256.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Square44x44Logo.targetsize-48.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.backup.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.UWP/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.Foundation; 7 | using Windows.Foundation.Collections; 8 | using Windows.UI.Xaml; 9 | using Windows.UI.Xaml.Controls; 10 | using Windows.UI.Xaml.Controls.Primitives; 11 | using Windows.UI.Xaml.Data; 12 | using Windows.UI.Xaml.Input; 13 | using Windows.UI.Xaml.Media; 14 | using Windows.UI.Xaml.Navigation; 15 | 16 | namespace Sayranet.WebRTC.Mobile.UWP 17 | { 18 | public sealed partial class MainPage 19 | { 20 | public MainPage() 21 | { 22 | this.InitializeComponent(); 23 | 24 | LoadApplication(new Sayranet.WebRTC.Mobile.App()); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | Sayranet.WebRTC.Mobile.UWP 7 | da1de20d-d0b4-461f-9b91-617f1c5b2cba 8 | Assets\StoreLogo.png 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/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("Sayranet.WebRTC.Mobile.UWP")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Sayranet.WebRTC.Mobile.UWP")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 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)] -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/Sayranet.WebRTC.Mobile.UWP.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {5AFD6CEF-6672-4E25-97B3-2BC412299C92} 8 | AppContainerExe 9 | Properties 10 | Sayranet.WebRTC.Mobile.UWP 11 | Sayranet.WebRTC.Mobile.UWP 12 | en-US 13 | UAP 14 | 10.0.16299.0 15 | 10.0.16299.0 16 | 14 17 | true 18 | 512 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | Sayranet.WebRTC.Mobile.UWP_TemporaryKey.pfx 21 | 55110102CDB51E555F810752E4FD4D3245C3C0D3 22 | 23 | 24 | true 25 | bin\ARM\Debug\ 26 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 27 | ;2008 28 | full 29 | ARM 30 | false 31 | prompt 32 | true 33 | 34 | 35 | bin\ARM\Release\ 36 | TRACE;NETFX_CORE;WINDOWS_UWP 37 | true 38 | ;2008 39 | pdbonly 40 | ARM 41 | false 42 | prompt 43 | true 44 | true 45 | 46 | 47 | true 48 | bin\x64\Debug\ 49 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 50 | ;2008 51 | full 52 | x64 53 | false 54 | prompt 55 | true 56 | 57 | 58 | bin\x64\Release\ 59 | TRACE;NETFX_CORE;WINDOWS_UWP 60 | true 61 | ;2008 62 | pdbonly 63 | x64 64 | false 65 | prompt 66 | true 67 | true 68 | 69 | 70 | true 71 | bin\x86\Debug\ 72 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 73 | ;2008 74 | full 75 | x86 76 | false 77 | prompt 78 | true 79 | 80 | 81 | bin\x86\Release\ 82 | TRACE;NETFX_CORE;WINDOWS_UWP 83 | true 84 | ;2008 85 | pdbonly 86 | x86 87 | false 88 | prompt 89 | true 90 | true 91 | 92 | 93 | 94 | App.xaml 95 | 96 | 97 | MainPage.xaml 98 | 99 | 100 | 101 | 102 | 103 | 104 | Designer 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | MSBuild:Compile 140 | Designer 141 | 142 | 143 | MSBuild:Compile 144 | Designer 145 | 146 | 147 | 148 | 149 | 1.62.0.7 150 | 151 | 152 | 153 | 154 | 155 | 156 | {D315789C-6C77-46E2-BE13-E91A37BBB724} 157 | Sayranet.WebRTC.Common 158 | 159 | 160 | {CE018EB0-0387-4C05-83D8-AAF11DD16202} 161 | Sayranet.WebRTC.Mobile 162 | 163 | 164 | 165 | 166 | 167 | 168 | 14.0 169 | 170 | 171 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.UWP/WebRtcViewRenderer.cs: -------------------------------------------------------------------------------- 1 | using Org.WebRtc; 2 | using Sayranet.WebRTC.Common.Models; 3 | using Sayranet.WebRTC.Mobile; 4 | using Sayranet.WebRTC.Mobile.UWP; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Diagnostics; 8 | using System.Linq; 9 | using System.Threading; 10 | using System.Threading.Tasks; 11 | using Windows.ApplicationModel; 12 | using Windows.Devices.Enumeration; 13 | using Windows.Graphics.Display; 14 | using Windows.Media.Capture; 15 | using Windows.System.Display; 16 | using Windows.UI; 17 | using Windows.UI.Core; 18 | using Windows.UI.Xaml; 19 | using Windows.UI.Xaml.Controls; 20 | using Windows.UI.Xaml.Input; 21 | using Windows.UI.Xaml.Media; 22 | using Xamarin.Forms.Platform.UWP; 23 | 24 | [assembly: ExportRenderer(typeof(WebRtcView), typeof(WebRtcViewRenderer))] 25 | namespace Sayranet.WebRTC.Mobile.UWP 26 | { 27 | public class WebRtcViewRenderer : ViewRenderer 28 | { 29 | private RelativePanel _panel; 30 | private Media _media; 31 | 32 | private MediaStream _localStream; 33 | private MediaElement _localVideo; 34 | private RTCPeerConnection _peerConnection; 35 | 36 | private MediaElement _remoteVideo; 37 | 38 | protected override void OnElementChanged(ElementChangedEventArgs e) 39 | { 40 | base.OnElementChanged(e); 41 | 42 | if (Control == null) 43 | { 44 | Debug.WriteLine("Setup WebRtcView Control null"); 45 | 46 | e.NewElement.Starting += NewElement_Starting; 47 | e.NewElement.OfferRequested += NewElement_OfferRequested; 48 | e.NewElement.AnswerRequested += NewElement_AnswerRequested; 49 | e.NewElement.AnswerReplayed += NewElement_AnswerReplayed; 50 | 51 | _panel = new RelativePanel(); 52 | //_panel.Width = e.NewElement.WidthRequest; 53 | //_panel.Height = e.NewElement.HeightRequest; 54 | _panel.Background = new SolidColorBrush(Colors.Aqua); 55 | 56 | _localVideo = new MediaElement(); 57 | _localVideo.Width = 320; 58 | _localVideo.Height = 240; 59 | 60 | _remoteVideo = new MediaElement(); 61 | _remoteVideo.Width = 320; 62 | _remoteVideo.Height = 240; 63 | RelativePanel.SetAlignRightWithPanel(_remoteVideo, true); 64 | 65 | _panel.Children.Add(_localVideo); 66 | _panel.Children.Add(_remoteVideo); 67 | 68 | SetNativeControl(_panel); 69 | } 70 | } 71 | 72 | private void NewElement_Starting(object sender, EventArgs e) 73 | { 74 | #if DEBUG 75 | //Enable logging ( 76 | Org.WebRtc.WebRTC.EnableLogging(LogLevel.LOGLVL_INFO); 77 | Debug.WriteLine("WebRTC debug file: " + Org.WebRtc.WebRTC.LogFileName); 78 | Debug.WriteLine("WebRTC debug storage folder name :" + Org.WebRtc.WebRTC.LogFolder.DisplayName 79 | + "\nand path: " + Org.WebRtc.WebRTC.LogFolder.Path); 80 | #endif 81 | // Display a permission dialog to request access to the microphone and camera 82 | Org.WebRtc.WebRTC.RequestAccessForMediaCapture().AsTask().ContinueWith(async t => 83 | { 84 | if (t.Result) 85 | { 86 | await Initialize(); 87 | } 88 | else 89 | { 90 | Element.SendError("Failed to obtain access to multimedia devices!"); 91 | } 92 | }); 93 | } 94 | 95 | private async Task Initialize() 96 | { 97 | //Initialization of WebRTC worker threads, etc 98 | Org.WebRtc.WebRTC.Initialize(Dispatcher); 99 | 100 | _media = Media.CreateMedia(); 101 | 102 | //Selecting video device to use, setting preferred capabilities 103 | var videoDevices = _media.GetVideoCaptureDevices(); 104 | var selectedVideoDevice = videoDevices.First(); 105 | var videoCapabilites = await selectedVideoDevice.GetVideoCaptureCapabilities(); 106 | var selectedVideoCapability = videoCapabilites.FirstOrDefault(); 107 | 108 | //Needed for HoloLens camera, will not set compatible video capability automatically 109 | //Hololens Cam default capability: 1280x720x30 110 | Org.WebRtc.WebRTC.SetPreferredVideoCaptureFormat( 111 | (int)selectedVideoCapability.Width, 112 | (int)selectedVideoCapability.Height, 113 | (int)selectedVideoCapability.FrameRate); 114 | 115 | //Setting up local stream 116 | RTCMediaStreamConstraints mediaStreamConstraints = new RTCMediaStreamConstraints 117 | { 118 | audioEnabled = false, 119 | videoEnabled = true 120 | }; 121 | _localStream = await _media.GetUserMedia(mediaStreamConstraints); 122 | _media.SelectVideoDevice(selectedVideoDevice); 123 | 124 | // Get Video Tracks 125 | var videotrac = _localStream.GetVideoTracks(); 126 | foreach (var videoTrack in videotrac) //This foreach may not be necessary 127 | { 128 | videoTrack.Enabled = true; 129 | } 130 | var selectedVideoTrac = videotrac.FirstOrDefault(); 131 | 132 | Debug.WriteLine("Creating RTCPeerConnection"); 133 | var config = new RTCConfiguration() 134 | { 135 | BundlePolicy = RTCBundlePolicy.Balanced, 136 | IceTransportPolicy = RTCIceTransportPolicy.All, 137 | IceServers = GetDefaultList() 138 | }; 139 | _peerConnection = new RTCPeerConnection(config); 140 | _peerConnection.OnIceCandidate += _localRtcPeerConnection_OnIceCandidate; 141 | _peerConnection.OnIceConnectionChange += _localRtcPeerConnection_OnIceConnectionChange; 142 | _peerConnection.OnAddStream += _peerConnection_OnAddStream; 143 | 144 | //_peerConnection.AddStream(_localStream); 145 | _media.AddVideoTrackMediaElementPair(selectedVideoTrac, _localVideo, _localStream.Id); 146 | 147 | // Send event started 148 | Element.SendStarted(); 149 | 150 | //Debug.WriteLine("Creating 'remote' RTCPeerConnection"); 151 | //_remoteRtcPeerConnection = new RTCPeerConnection(config); 152 | //_remoteRtcPeerConnection.OnIceCandidate += _remoteRtcPeerConnection_OnIceCandidate; 153 | //_remoteRtcPeerConnection.OnIceConnectionChange += _remoteRtcPeerConnection_OnIceConnectionChange; 154 | //// Wait for Stream 155 | //_remoteRtcPeerConnection.OnAddStream += _remoteRtcPeerConnection_OnAddStream; 156 | } 157 | 158 | private async void NewElement_OfferRequested(object sender, EventArgs e) 159 | { 160 | var offer = await _peerConnection.CreateOffer(); 161 | Debug.WriteLine("OfferRequested CreateOffer, sdp\n" + offer.Sdp); 162 | 163 | await _peerConnection.SetLocalDescription(offer); 164 | Debug.WriteLine("OfferRequested SetLocalDescription complete offer"); 165 | 166 | //await _remoteRtcPeerConnection.SetRemoteDescription(offer); 167 | //Debug.WriteLine("SetRemoteDescription complete offer"); 168 | 169 | Element.SendOfferRecived(offer.ToWebRTCSDP()); 170 | } 171 | 172 | private async void NewElement_AnswerRequested(object sender, SdpEventArgs e) 173 | { 174 | await _peerConnection.SetRemoteDescription(e.Sdp.ToRTCSessionDescription()); 175 | Debug.WriteLine("AnswerRequested SetRemoteDescription complete"); 176 | 177 | var answerDesc = await _peerConnection.CreateAnswer(); 178 | Debug.WriteLine("AnswerRequested CreateAnswer complete"); 179 | 180 | await _peerConnection.SetLocalDescription(answerDesc); 181 | Debug.WriteLine("AnswerRequested SetLocalDescription complete"); 182 | 183 | Element.SendAnswerRecived(answerDesc.ToWebRTCSDP()); 184 | } 185 | 186 | private async void NewElement_AnswerReplayed(object sender, SdpEventArgs e) 187 | { 188 | await _peerConnection.SetRemoteDescription(e.Sdp.ToRTCSessionDescription()); 189 | Debug.WriteLine("AnswerReplayed SetRemoteDescription complete"); 190 | } 191 | 192 | private void _localRtcPeerConnection_OnIceConnectionChange(RTCPeerConnectionIceStateChangeEvent __param0) 193 | { 194 | Debug.WriteLine($"Entered _localRtcPeerConnection_OnIceConnectionChange {__param0.State}"); 195 | } 196 | 197 | private async void _localRtcPeerConnection_OnIceCandidate(RTCPeerConnectionIceEvent __param0) 198 | { 199 | Debug.WriteLine("Entered _localRtcPeerConnection_OnIceCandidate"); 200 | await _peerConnection.AddIceCandidate(__param0.Candidate); 201 | } 202 | 203 | //private void _remoteRtcPeerConnection_OnIceConnectionChange(RTCPeerConnectionIceStateChangeEvent __param0) 204 | //{ 205 | // Debug.WriteLine($"Entered _remoteRtcPeerConnection_OnIceConnectionChange {__param0.State}"); 206 | //} 207 | 208 | //private async void _remoteRtcPeerConnection_OnIceCandidate(RTCPeerConnectionIceEvent __param0) 209 | //{ 210 | // Debug.WriteLine("Entered _remoteRtcPeerConnection_OnIceCandidate"); 211 | // await _remoteRtcPeerConnection.AddIceCandidate(__param0.Candidate); 212 | //} 213 | 214 | //private void _remoteRtcPeerConnection_OnAddStream(MediaStreamEvent __param0) 215 | //{ 216 | // MediaStream remoteStream = __param0.Stream; 217 | // var tracks = remoteStream.GetVideoTracks(); 218 | // _media.AddVideoTrackMediaElementPair(tracks.FirstOrDefault(), _remoteVideo, remoteStream.Id); 219 | // Debug.WriteLine("Received a remote stream"); 220 | //} 221 | 222 | private void _peerConnection_OnAddStream(MediaStreamEvent __param0) 223 | { 224 | MediaStream remoteStream = __param0.Stream; 225 | var tracks = remoteStream.GetVideoTracks(); 226 | _media.AddVideoTrackMediaElementPair(tracks.FirstOrDefault(), _remoteVideo, remoteStream.Id); 227 | Debug.WriteLine("Received a remote stream"); 228 | } 229 | 230 | //Stun and Turn servers borrowed from Chatterbox example 231 | private static List GetDefaultList() 232 | { 233 | return new List 234 | { 235 | new RTCIceServer 236 | { 237 | Url = "stun:stun.l.google.com:19302", 238 | Username = string.Empty, 239 | Credential = string.Empty 240 | }, 241 | new RTCIceServer 242 | { 243 | Url = "stun:stun1.l.google.com:19302", 244 | Username = string.Empty, 245 | Credential = string.Empty 246 | }, 247 | new RTCIceServer 248 | { 249 | Url = "stun:stun2.l.google.com:19302", 250 | Username = string.Empty, 251 | Credential = string.Empty 252 | }, 253 | new RTCIceServer 254 | { 255 | Url = "stun:stun3.l.google.com:19302", 256 | Username = string.Empty, 257 | Credential = string.Empty 258 | }, 259 | new RTCIceServer 260 | { 261 | Url = "stun:stun4.l.google.com:19302", 262 | Username = string.Empty, 263 | Credential = string.Empty 264 | }, 265 | new RTCIceServer 266 | { 267 | Url = "turn:40.76.194.255:3478", 268 | Username = "testrtc", 269 | Credential = "rtc123" 270 | } 271 | }; 272 | } 273 | } 274 | 275 | 276 | public static class RTCSessionDescriptionExtension 277 | { 278 | public static WebRTCSDP ToWebRTCSDP(this RTCSessionDescription sessionDescription) 279 | { 280 | return new WebRTCSDP 281 | { 282 | Type = sessionDescription.Type.HasValue ? (SDPType?)sessionDescription.Type.Value : null, 283 | Sdp = sessionDescription.Sdp 284 | }; 285 | } 286 | 287 | public static RTCSessionDescription ToRTCSessionDescription(this WebRTCSDP sessionDescription) 288 | { 289 | if (!sessionDescription.Type.HasValue) 290 | { 291 | Debug.WriteLine("WebRTCSDP type is null"); 292 | } 293 | return new RTCSessionDescription((RTCSdpType)sessionDescription.Type.GetValueOrDefault(), sessionDescription.Sdp); 294 | } 295 | } 296 | } 297 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace Sayranet.WebRTC.Mobile.iOS 9 | { 10 | // The UIApplicationDelegate for the application. This class is responsible for launching the 11 | // User Interface of the application, as well as listening (and optionally responding) to 12 | // application events from iOS. 13 | [Register("AppDelegate")] 14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 15 | { 16 | // 17 | // This method is invoked when the application has loaded and is ready to run. In this 18 | // method you should instantiate the window, load the UI into it and then make the window 19 | // visible. 20 | // 21 | // You have 17 seconds to return from this method, or iOS will terminate your application. 22 | // 23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 24 | { 25 | global::Xamarin.Forms.Forms.Init(); 26 | LoadApplication(new App()); 27 | 28 | return base.FinishedLaunching(app, options); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "scale": "2x", 5 | "size": "20x20", 6 | "idiom": "iphone", 7 | "filename": "Icon40.png" 8 | }, 9 | { 10 | "scale": "3x", 11 | "size": "20x20", 12 | "idiom": "iphone", 13 | "filename": "Icon60.png" 14 | }, 15 | { 16 | "scale": "2x", 17 | "size": "29x29", 18 | "idiom": "iphone", 19 | "filename": "Icon58.png" 20 | }, 21 | { 22 | "scale": "3x", 23 | "size": "29x29", 24 | "idiom": "iphone", 25 | "filename": "Icon87.png" 26 | }, 27 | { 28 | "scale": "2x", 29 | "size": "40x40", 30 | "idiom": "iphone", 31 | "filename": "Icon80.png" 32 | }, 33 | { 34 | "scale": "3x", 35 | "size": "40x40", 36 | "idiom": "iphone", 37 | "filename": "Icon120.png" 38 | }, 39 | { 40 | "scale": "2x", 41 | "size": "60x60", 42 | "idiom": "iphone", 43 | "filename": "Icon120.png" 44 | }, 45 | { 46 | "scale": "3x", 47 | "size": "60x60", 48 | "idiom": "iphone", 49 | "filename": "Icon180.png" 50 | }, 51 | { 52 | "scale": "1x", 53 | "size": "20x20", 54 | "idiom": "ipad", 55 | "filename": "Icon20.png" 56 | }, 57 | { 58 | "scale": "2x", 59 | "size": "20x20", 60 | "idiom": "ipad", 61 | "filename": "Icon40.png" 62 | }, 63 | { 64 | "scale": "1x", 65 | "size": "29x29", 66 | "idiom": "ipad", 67 | "filename": "Icon29.png" 68 | }, 69 | { 70 | "scale": "2x", 71 | "size": "29x29", 72 | "idiom": "ipad", 73 | "filename": "Icon58.png" 74 | }, 75 | { 76 | "scale": "1x", 77 | "size": "40x40", 78 | "idiom": "ipad", 79 | "filename": "Icon40.png" 80 | }, 81 | { 82 | "scale": "2x", 83 | "size": "40x40", 84 | "idiom": "ipad", 85 | "filename": "Icon80.png" 86 | }, 87 | { 88 | "scale": "1x", 89 | "size": "76x76", 90 | "idiom": "ipad", 91 | "filename": "Icon76.png" 92 | }, 93 | { 94 | "scale": "2x", 95 | "size": "76x76", 96 | "idiom": "ipad", 97 | "filename": "Icon152.png" 98 | }, 99 | { 100 | "scale": "2x", 101 | "size": "83.5x83.5", 102 | "idiom": "ipad", 103 | "filename": "Icon167.png" 104 | }, 105 | { 106 | "scale": "1x", 107 | "size": "1024x1024", 108 | "idiom": "ios-marketing", 109 | "filename": "Icon1024.png" 110 | } 111 | ], 112 | "properties": {}, 113 | "info": { 114 | "version": 1, 115 | "author": "xcode" 116 | } 117 | } -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIDeviceFamily 6 | 7 | 1 8 | 2 9 | 10 | UISupportedInterfaceOrientations 11 | 12 | UIInterfaceOrientationPortrait 13 | UIInterfaceOrientationLandscapeLeft 14 | UIInterfaceOrientationLandscapeRight 15 | 16 | UISupportedInterfaceOrientations~ipad 17 | 18 | UIInterfaceOrientationPortrait 19 | UIInterfaceOrientationPortraitUpsideDown 20 | UIInterfaceOrientationLandscapeLeft 21 | UIInterfaceOrientationLandscapeRight 22 | 23 | MinimumOSVersion 24 | 8.0 25 | CFBundleDisplayName 26 | Sayranet.WebRTC.Mobile 27 | CFBundleIdentifier 28 | com.companyname.Sayranet.WebRTC.Mobile 29 | CFBundleVersion 30 | 1.0 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | CFBundleName 34 | Sayranet.WebRTC.Mobile 35 | XSAppIconAssets 36 | Assets.xcassets/AppIcon.appiconset 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace Sayranet.WebRTC.Mobile.iOS 9 | { 10 | public class Application 11 | { 12 | // This is the main entry point of the application. 13 | static void Main(string[] args) 14 | { 15 | // if you want to use a different Application Delegate class from "AppDelegate" 16 | // you can specify it here. 17 | UIApplication.Main(args, null, "AppDelegate"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/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("Sayranet.WebRTC.Mobile.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Sayranet.WebRTC.Mobile.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mstachyra/WebRtc/331087d1bca94d9e3e3d31392815a05af876fadd/src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 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 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile.iOS/Sayranet.WebRTC.Mobile.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {7FE63E0C-A483-475F-81FC-DB5DCBA7C8FF} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | {6143fdea-f3c2-4a09-aafa-6e230626515e} 11 | Exe 12 | Sayranet.WebRTC.Mobile.iOS 13 | Resources 14 | Sayranet.WebRTC.Mobile.iOS 15 | 16 | 17 | 18 | 19 | true 20 | full 21 | false 22 | bin\iPhoneSimulator\Debug 23 | DEBUG 24 | prompt 25 | 4 26 | false 27 | x86_64 28 | None 29 | true 30 | 31 | 32 | none 33 | true 34 | bin\iPhoneSimulator\Release 35 | prompt 36 | 4 37 | None 38 | x86_64 39 | false 40 | 41 | 42 | true 43 | full 44 | false 45 | bin\iPhone\Debug 46 | DEBUG 47 | prompt 48 | 4 49 | false 50 | ARM64 51 | iPhone Developer 52 | true 53 | Entitlements.plist 54 | 55 | 56 | none 57 | true 58 | bin\iPhone\Release 59 | prompt 60 | 4 61 | ARM64 62 | false 63 | iPhone Developer 64 | Entitlements.plist 65 | 66 | 67 | none 68 | True 69 | bin\iPhone\Ad-Hoc 70 | prompt 71 | 4 72 | False 73 | ARM64 74 | True 75 | Automatic:AdHoc 76 | iPhone Distribution 77 | Entitlements.plist 78 | 79 | 80 | none 81 | True 82 | bin\iPhone\AppStore 83 | prompt 84 | 4 85 | False 86 | ARM64 87 | Automatic:AppStore 88 | iPhone Distribution 89 | Entitlements.plist 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | false 102 | 103 | 104 | false 105 | 106 | 107 | false 108 | 109 | 110 | false 111 | 112 | 113 | false 114 | 115 | 116 | false 117 | 118 | 119 | false 120 | 121 | 122 | false 123 | 124 | 125 | false 126 | 127 | 128 | false 129 | 130 | 131 | false 132 | 133 | 134 | false 135 | 136 | 137 | false 138 | 139 | 140 | false 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | {CE018EB0-0387-4C05-83D8-AAF11DD16202} 156 | Sayranet.WebRTC.Mobile 157 | 158 | 159 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile/App.xaml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | using Xamarin.Forms.Xaml; 4 | 5 | //[assembly: XamlCompilation (XamlCompilationOptions.Compile)] 6 | namespace Sayranet.WebRTC.Mobile 7 | { 8 | public partial class App : Application 9 | { 10 | public App () 11 | { 12 | InitializeComponent(); 13 | 14 | MainPage = new NavigationPage(new MainPage()); 15 | } 16 | 17 | protected override void OnStart () 18 | { 19 | // Handle when your app starts 20 | } 21 | 22 | protected override void OnSleep () 23 | { 24 | // Handle when your app sleeps 25 | } 26 | 27 | protected override void OnResume () 28 | { 29 | // Handle when your app resumes 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Mobile/Sayranet.WebRTC.Mobile/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 |