microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
211 stars 236 forks source link

Media platform failed to initialize #784

Open DynTechieBibin opened 3 weeks ago

DynTechieBibin commented 3 weeks ago

I'm working on application-hosted media bot and getting the following exception while testing locally on Windows 11: Unable to load DLL 'NativeMedia' or one of its dependencies.

This exception occurs from the line: builder.SetMediaPlatformSettings(mediaPlatformSettings);

var mediaPlatformSettings = new MediaPlatformSettings() { MediaPlatformInstanceSettings = new MediaPlatformInstanceSettings() { CertificateThumbprint = sthumbprint, InstanceInternalPort = internalPort, InstancePublicIPAddress = IPAddress.Any, InstancePublicPort = publicPort, ServiceFqdn = config.ServiceFqdn }, ApplicationId = config.APP_ID, }; project_file.txt

mediabot

DynTechieBibin commented 1 week ago

Install package Microsoft.Skype.Bots.Media. Even though it is within Microsoft.Graph.Communications.Calls.Media package, it seems the whole skype bot dependent dlls are not there.

InDieTasten commented 1 week ago

Congrats to finding your own solution!

I guess you could also close the issue then :)