Media platform failed to initialize
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
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.
Congrats to finding your own solution!
I guess you could also close the issue then :)
Hi guys, i try to run echobot locally, but have this issue, do u have any idea for this
Echo Bot Service is starting... fail: EchoBot.EchoBotWorker[0] Media platform failed to initialize Status Code: 0 Microsoft.Graph.Communications.Core.Exceptions.ServiceException: Media platform failed to initialize ---> System.ArgumentException: CertificateThumbprint (Parameter 'Could not find a matching certificate for thumbprint 9E95EBE782871401573B547F603FCD2D797FFDD6') at Microsoft.Skype.Internal.Bots.Media.InternalMediaPlatform.Initialize(MediaPlatformSettings settings, IConfigurationManager configurationManager, Boolean isTest) at Microsoft.Graph.Communications.Calls.Media.MediaCommunicationsClientBuilderExtensions.SetMediaPlatformSettings(ICommunicationsClientBuilder statefulClientBuilder, MediaPlatformSettings mediaSettings) --- End of inner exception stack trace --- at Microsoft.Graph.Communications.Calls.Media.MediaCommunicationsClientBuilderExtensions.SetMediaPlatformSettings(ICommunicationsClientBuilder statefulClientBuilder, MediaPlatformSettings mediaSettings) at EchoBot.Bot.BotService.Initialize() in C:\microsoft-graph-comms-samples\Samples\PublicSamples\EchoBot\src\EchoBot\Bot\BotService.cs:line 141 at EchoBot.BotHost.StartAsync() in C:\microsoft-graph-comms-samples\Samples\PublicSamples\EchoBot\src\EchoBot\BotHost.cs:line 138 at EchoBot.EchoBotWorker.ExecuteAsync(CancellationToken stoppingToken) in C:\microsoft-graph-comms-samples\Samples\PublicSamples\EchoBot\src\EchoBot\EchoBotWorker.cs:line 24
@tranguyendinh Your issue is unrelated. The error message you shared is pretty clear about the cause of the issue:
---> System.ArgumentException: CertificateThumbprint (Parameter 'Could not find a matching certificate for thumbprint 9E95EBE782871401573B547F603FCD2D797FFDD6')
If you need more help, I'd suggest opening a separate issue to keep things searchable