-
Notifications
You must be signed in to change notification settings - Fork 907
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
controller in playlist widget? #1286
Comments
playlist.currentState?.betterPlayerPlaylistController?.betterPlayerController |
The solution proposed by @winterdl does work, however, the listener never receives |
Hi, how do I access the playlist here? I mean what is this playlist? @jczerniakiev @winterdl |
Hi, @jczerniakiev thanks for that. I know it might sound dumb but can I control the player (play/pause etc) using this betterPlayerController that I access using the key? or is it just for listening to events? |
Sure you can: https://pub.dev/documentation/better_player/latest/better_player/BetterPlayerController/play.html |
Thanks a lot. appreciate it. @jczerniakiev. I'll give it a try. |
To access the events (https://jhomlala.github.io/betterplayer/#/events) you need to create a controller, but there is no way to create a controller in playlist format, since the BetterPlayerPlaylist widget does not receive a controller. .
However, the event has something called "changedPlaylistItem" which left me confused. How do I capture events when using playlist?
The text was updated successfully, but these errors were encountered: