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

Support for setlooping #7

Closed
JamalBelilet opened this issue Apr 22, 2019 · 3 comments
Closed

Support for setlooping #7

JamalBelilet opened this issue Apr 22, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@JamalBelilet
Copy link

Is there any way to implement setlooping(true) with this plugin, if not detecting VideoEnd event may allow that by replaying it.

@sarbagyastha
Copy link
Owner

@JamalBelilet , With next update I am planning to add setloop and playlist related features. Currently, you can listen to video end and seek to start to achieve the similar.

@JamalBelilet
Copy link
Author

Thank you @sarbagyastha, I implement it like this:
listener = () { if (this.mounted) { setState(() {}); if (_controller.value.playerState == youtube_player.PlayerState.ENDED) { _controller.play(); } } };

I already implement that playlist feature using Youtube data api, but I'll be waiting for your way.

@sarbagyastha
Copy link
Owner

The feature is added with version 5.

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

No branches or pull requests

2 participants