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
[BUG] Infinite loading of video #169
Comments
Same issue. Any progress or workarounds? |
I have the same issue. Video is loading forever. It only happens on a real Android Device in release build. Device: Samsung Galaxy A6 This really is a showstopper and lets me think about using something like flutter_youtube_view instead... |
Ok after some further investigation I found the reason for my problem. It seems that Android permissions need to be set by hand after creating a new flutter project. By default the release version doesn't have any permissions -> no access to the internet. Therefore the youtube-player cannot access the source-file and loads forever. Adding the following to the AndroidManifest.xml solved it for me:
Solution found on: Flutter released app not working on the device, when installed |
It doesn't work for me. Still have the same problem. |
Not working on iOS devices or simulator for me either. Using 6.1.0+7 |
Another note if you try and FullScreen during this infinite load you get an error Invalid Video ID = Error Code: 1 |
I had the same issue. In my case, the issue was caused by webview_flutter: ^0.3.20+2 Removing this dependency from my pubspec solved the problem |
I found my issue the video id's were actually waiting to be published. Set to premiere in x days. A real youtube player says this if you try to play the video that is about to premiere. Maybe this should be an added feature |
Same problem on iPad 3 with iOS 9.3.5, and none of the above helped me |
Should fix with v7.0.0. |
I'm using |
I am having same infinite loading issue, any update on this problem? |
Same issue for me as well on Android Pixel 2 XL emulator. Video loads if I downgrade to v6.1.1. minSdkVersion 21 I do not include webview_flutter. Initialization is fairly simple:
|
Same issue for me as well on Android Pixel 3. Video keeps on loading, it works perfectly on iOS. is this an issues with just Emulator ?? has anyone tried on real Android Device? Any update would help. Thank you. |
Experiencing the same issue. |
Did anyone find any solution for this issue? |
Downgrade to 6.1.1 package |
Thanks @JigarKotak7 for replying, I downgraded it to v6.1.1 package but it was still not running in the emulator. So I tried @Gunlek idea to
|
@hardikkr Happy it worked out for you. |
i am also having some issues in playing video it is loading infinietely and i icant figure out why |
also same problem |
I am having same infinite loading issue, It' working in emulator but real device it's not working |
hey @santhoshisrimanthula so. the latest version works on a few phones and doesn't work on other phones. I solved this problem by downgrading into version |
I had internet permission only for debug manifest. After adding internet permission to the main manifest, It worked for me. |
Had an issue with the constant loading of the video player. |
Describe the bug
I tested the default example implemented in an app and the video is loading infinitely, the last message in debug console is
W/System (14804): A resource failed to call release
To Reproduce
Define your controller like this in
initState()
And implement your widget like this:
Expected behavior
A working youtube video should show up and wait for the user to start playing it
Technical Details:
Additional context
I checked this bug report: flutter/flutter#24565
Because the controller is sending the same message if you're trying to use it.
The widget tree is like this:
Complete errored debug console:
The text was updated successfully, but these errors were encountered: