Video player throws PlatformException
When I run the application with Flutter-pi, video_player throws this exception:
Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) VideoPlayerApi.create(package:video_player_platform_interface/messages.g.dart:156:7) asynchronous suspension
MethodChannelVideoPlayer.create(package:video_player_platform_interface/method_channel_video_player.dart:53:37) VideoPlayerController.initialize(package:video_player/video_player.dart:363:19) asynchronous suspension
I am using the example application that was given on the page of video_player package.
Has anybody faced this issue before?
Have you installed the gstreamer video player dependencies in the Dependencies section?
@ardera I installed all dependencies in raspberry but i still have the problem, i use flutter 2.8 Do I have to build flutterpi again?
Yes, you have to rebuild flutter-pi after you've installed the dependencies, and it's better to reconfigure too. (Remove the build directory and re-run cmake).
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens and logs. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.