[flutter_vlc_player] PlatformException: Unable to establish connection on channel during VlcPlayerController.initialize() #18369
Replies: 1 comment
|
That error happens before VLC opens the media. The generated Pigeon client sent a message, but no Android handler was registered on that Flutter engine. So the first thing to debug is plugin registration/lifecycle rather than the stream URL. I would check these in order:
flutter clean
flutter pub get
flutter runAlso uninstall the existing app once before reinstalling. Adding or changing a native plugin cannot be validated by hot reload.
flutter pub deps | grep -A3 flutter_vlc_playerAvoid pinning
adb logcat | grep -i -E "flutter|vlc|libvlc|pigeon|exception"A minimal test should contain only one One other point: |
Uh oh!
There was an error while loading. Please reload this page.
[15/06/26, 10:03:26 AM] Nandhakumar B M: rController.initialize()
[15/06/26, 10:03:50 AM] Nandhakumar B M: ## Bug Report
Description
When VlcPlayerController.initialize() is called, the app crashes with a
PlatformException(channel-error) . The Flutter side is unable to establish
a connection with the Android native VLC code.
Error Log
PlatformException(channel-error, Unable to establish connection on channel., null, null)
#0 VlcPlayerApi.create (package:flutter_vlc_player_platform_interface/src/messages/messages.dart:658:7)
#1 VlcPlayerController.initialize (package:flutter_vlc_player/src/vlc_player_controller.dart:191:5)
#2 VlcPlayerController.onPlatformViewCreated (package:flutter_vlc_player/src/vlc_player_controller.dart:969:7)
All reactions