flutter-pi icon indicating copy to clipboard operation
flutter-pi copied to clipboard

Video player throws PlatformException

Open erdemduman opened this issue 3 years ago • 2 comments

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?

erdemduman avatar Sep 06 '22 09:09 erdemduman

Have you installed the gstreamer video player dependencies in the Dependencies section?

ardera avatar Sep 19 '22 12:09 ardera

@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?

adicomdotir avatar Sep 28 '22 09:09 adicomdotir

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).

ardera avatar Nov 01 '22 16:11 ardera

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.

github-actions[bot] avatar Nov 22 '22 17:11 github-actions[bot]