Skip to content
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

State stuck on BUFFERING - iOS #19

Closed
fxsalazar opened this issue Sep 2, 2019 · 3 comments
Closed

State stuck on BUFFERING - iOS #19

fxsalazar opened this issue Sep 2, 2019 · 3 comments

Comments

@fxsalazar
Copy link

Try to embed the YouTubeDefaultWidget from the example in my app without success:

flutter: onReady
flutter: onStateChange state = UNSTARTED
flutter: onStateChange state = BUFFERING
[VERBOSE-2:platform_view_layer.cc(19)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(28)] Trying to embed a platform view but the PaintContext does not support embedding

Set autoplay to true, but i cannot even see the video frame.

@fxsalazar fxsalazar changed the title State stuck on BUFFERING State stuck on BUFFERING - iOS Sep 2, 2019
@hoanglm4
Copy link
Owner

hoanglm4 commented Sep 3, 2019

Hi @fxsalazar ,
Please add (key=io.flutter.embedded_views_preview value=YES) into Info.plist.
flutter/flutter#19030 (comment)

@fxsalazar
Copy link
Author

This should be put on the README as part of How to use. Thx.

@fxsalazar
Copy link
Author

@hoanglm4 I'm having another issue. Why the widget is rebuilding itself twice, calling its parent to rebuild? I'm fetching data (the video url) with a StreamBuilder and this causing an infinite loop between the fetching and the building of the player.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants