Open fabioselau077 opened 5 months ago
playlist.currentState?.betterPlayerPlaylistController?.betterPlayerController
The solution proposed by @winterdl does work, however, the listener never receives changedPlaylistItem
. Every other event is received except this one.
Hi, how do I access the playlist here? I mean what is this playlist? @jczerniakiev @winterdl
@waqadArshad An example: https://stackoverflow.com/a/78413013/22682821
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?
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?