Open mothermetabot opened 4 years ago
@mothermetabot I downloaded the NuGet package manually and I confirm that mrwebrtc.dll
is in runtimes\win10-x86\native
, so should be automatically deployed. I am not sure why it is not. Can you please confirm by manually copying the DLL next to your executable, to see if that solves things?
@efsjouw the bug report mentions x86 Desktop.
System.DllNotFoundException: mrwebrtc assembly:1[[System.Collections.Generic.IReadOnlyList
1[[Microsoft.MixedReality.WebRTC.VideoCaptureDevice, Microsoft.MixedReality.WebRTC, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
Thanks for your work.
I have already tried to use it several times, but bumped into mrwebrtc.dll Could you tell me where dll is looking for?
This is the general Windows rule of LoadLibrary()
, which is invoked automatically by P/Invoke. Generally this means mrwebrtc.dll
needs to be in the same folder as Microsoft.MixedReality.WebRTC.dll
(the C# assembly).
Is there any possibility of using this for .net core web applications hosted on Linux platforms?
This is the general Windows rule of
LoadLibrary()
, which is invoked automatically by P/Invoke. Generally this meansmrwebrtc.dll
needs to be in the same folder asMicrosoft.MixedReality.WebRTC.dll
(the C# assembly).
I think this fixes the issue. I I copied Microsoft.MixedReality.WebRTC.2.0.2\runtimes\win10-x86\native\mrwebrtc.dll to the build output directory. It works for me
By default a console App will have a 'Any CPU' configuration. This confuses the package manager because it has x86 & x64 runtimes so doesn't copy over the runtime correctly. If you create a new configuration, say x64, then it should automatically work.
Describe the bug Consuming the MixedReality.WebRTC library throws an error:
To Reproduce Steps to reproduce the behavior:
var deviceList = await DeviceVideoTrackSource.GetCaptureDevicesAsync();
)Expected behavior The code is supposed to execute without errors.
Environment
Additional context I installed the Nuget package through Visual Studio 2019 Community. The project builds but fails immediately when I call a function from the WebRTC API. I cannot find any
mrwebrtc.dll
in the bin folder, is this normal behavior(see Exception Message above)? In the Solution Explorer, I can see Microsoft.MixedReality.WebRTC library underReferences
and the respective DLL in thebin
folder.StackTrace: