windows-desktop_multi_window No implementation found for method initialize on channel FlutterWebRTC.Method · Issue #1811 · flutter-webrtc/flutter-webrtc · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using desktop_multi_window to create child windows on Windows 11, invoking any flutter-webrtc methods (e.g., getUserMedia, RTCPeerConnection) in child windows consistently triggers the error: MissingPluginException(No implementation found for method initialize on channel FlutterWebRTC.Method)
This occurs exclusively in child windows; the main window works normally despite identical plugin registration logic .
To Reproduce
Initialize desktop_multi_window with explicit plugin registration for child windows:
// Windows platform code (C++)DesktopMultiWindowSetWindowCreatedCallback([](void* controller) {
auto* flutter_view_controller =
reinterpret_cast<flutter::FlutterViewController*>(controller);
auto* registry = flutter_view_controller->engine();
// Register WebRTC plugin for child windowauto fp = registry->GetRegistrarForPlugin("FlutterWebRTCPlugin");
FlutterWebRTCPluginRegisterWithRegistrar(fp); // From flutter_webrtc.h
});
In the child window's Flutter UI, call a WebRTC method:
Observe the MissingPluginException immediately upon method invocation.
Expected behavior
The WebRTC plugin should function in child windows after explicit registration via FlutterWebRTCPluginRegisterWithRegistrar, as it does in the main window .
Describe the bug
When using
desktop_multi_window
to create child windows on Windows 11, invoking anyflutter-webrtc
methods (e.g.,getUserMedia
,RTCPeerConnection
) in child windows consistently triggers the error:MissingPluginException(No implementation found for method initialize on channel FlutterWebRTC.Method)
This occurs exclusively in child windows; the main window works normally despite identical plugin registration logic .
To Reproduce
desktop_multi_window
with explicit plugin registration for child windows:MissingPluginException
immediately upon method invocation.Expected behavior
The WebRTC plugin should function in child windows after explicit registration via
FlutterWebRTCPluginRegisterWithRegistrar
, as it does in the main window .Platform information
Flutter version:
Plugin version:
desktop_multi_window: ^0.2.1
flutter_webrtc: ^0.13.1
OS: Windows 11 21H2 22000.2538
Additional context:
path_provider
) in child windows.The text was updated successfully, but these errors were encountered: