-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Running on Windows desktop application calling addTrack or any invokeMethod to the mainChannel "FlutterWebRTC.Method" is causing
"The 'FlutterWebRTC/Texture2718836695408' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel."
To Reproduce
You can run the example in the flutter-webrtc library
cd example
flutter run -d windows
click on GetUserMedia tab
the exception will printed in the console.
debugging the issue is going back to for example addTrack
on Invoking the method over here: "channel sent a message from native to Flutter on a non-platform thread"
is throwing the exception "
Expected behavior
It should not through this exception.
Which is affecting video calls and causing RTP timeouts
Platform information
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22631.4169], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.5)
[√] Android Studio (version 2022.3)
[√] IntelliJ IDEA Community Edition (version 2023.1)
[√] VS Code (version 1.93.1)
[√] VS Code, 64-bit edition (version 1.80.2)
[√] Connected device (3 available)
[√] Network resources