File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
#include " flutter_webrtc.h"
5
5
#include " task_runner_windows.h"
6
6
7
+ #include < flutter/plugin_registrar_windows.h>
8
+
7
9
const char * kChannelName = " FlutterWebRTC.Method" ;
8
10
9
11
namespace flutter_webrtc_plugin {
@@ -71,7 +73,7 @@ class FlutterWebRTCPluginImpl : public FlutterWebRTCPlugin {
71
73
72
74
void FlutterWebRTCPluginRegisterWithRegistrar (
73
75
FlutterDesktopPluginRegistrarRef registrar) {
74
- static auto * plugin_registrar = new flutter::PluginRegistrar (registrar);
75
- flutter_webrtc_plugin::FlutterWebRTCPluginImpl::RegisterWithRegistrar (
76
- plugin_registrar );
76
+ flutter_webrtc_plugin::FlutterWebRTCPluginImpl::RegisterWithRegistrar (
77
+ flutter::PluginRegistrarManager::GetInstance ()
78
+ -> GetRegistrar <flutter::PluginRegistrarWindows>(registrar) );
77
79
}
You can’t perform that action at this time.
0 commit comments