sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
702 stars 811 forks source link

[BUG] Stopped working after Flutter upgrade #951

Open sdattatri opened 4 months ago

sdattatri commented 4 months ago

Describe the bug The youtube player was working fine. Then I upgraded Flutter to 3.22. Did a flutter clean and rebuilt the debug version. Now, the first frame is displaying and on top is a progress indicator that is spinning non-stop.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. WhatsApp Image 2024-06-07 at 9 28 10 AM

Technical Details:

Additional context Add any other context about the problem here.

sdattatri commented 4 months ago

Used the answer here to solve the issue for now: https://stackoverflow.com/questions/78568575/i-got-error-while-running-flutter-webview-e-methodchannelflutter-platform-view

alexgrant999 commented 3 months ago

I had this error too.

I downgraded from youtube_player_flutter: ^9.0.1 to youtube_player_flutter: ^8.0.1

This fixed it.

danielyepezgarces commented 3 months ago

I had this error too.

I downgraded from youtube_player_flutter: ^9.0.1 to youtube_player_flutter: ^8.0.1

This fixed it.

Thank you, updating the library in Flutter 3.2.2 at the moment is not good