Skip to content

Video player throws PlatformException #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
erdemduman opened this issue Sep 6, 2022 · 4 comments
Closed

Video player throws PlatformException #285

erdemduman opened this issue Sep 6, 2022 · 4 comments
Labels
waiting for response Issue requires more details by the user to be fixed and will be closed after 21 days on no response.

Comments

@erdemduman
Copy link

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?

@ardera
Copy link
Owner

ardera commented Sep 19, 2022

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

@adicomdotir
Copy link

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

@ardera
Copy link
Owner

ardera commented Nov 1, 2022

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 ardera added the waiting for response Issue requires more details by the user to be fixed and will be closed after 21 days on no response. label Nov 1, 2022
@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for response Issue requires more details by the user to be fixed and will be closed after 21 days on no response.
Projects
None yet
Development

No branches or pull requests

3 participants