radioman / WebRtc.NET

WebRTC for C# & C++/CLI
Other
419 stars 126 forks source link

UWP Support #61

Open NinoStella opened 7 years ago

NinoStella commented 7 years ago

Are you planning a porting to UWP? It could be really useful.

radioman commented 7 years ago

there is nothing to port, you can use c++ or c or c# interface

NinoStella commented 7 years ago

I have a UWP c# project and cannot add reference to the webrtc.dll Tried to build a UWP library based on your code, but i encountered lots of incompatibilty isssues.

EbramTawfik commented 7 years ago

Did you try staging branch https://github.com/radioman/WebRtc.NET/tree/staging ?

NinoStella commented 7 years ago

Tried, but no luck. In UWP you can't easily use DllImport. The best approach seems to be creating a WiNRT Component but there are lots of limitation. For example, you can't use IntPtr as parameter, neither as return type. My c++ knowledge is limited so maybe i'm doing something wrong. If you are certain about the compatiblity of your code with UWP, please give me some hints, or if you can, please try yourself to build a UWP project.

radioman commented 7 years ago

hm, it seems uwp is one huge bs..

monsdar commented 6 years ago

There's a UWP compatible WebRTC wrapper, you can even get it via Nuget: https://www.nuget.org/packages/WebRTC/

Here's the repo: https://github.com/webrtc-uwp/webrtc-uwp-sdk