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

controller in playlist widget? #1286

Open
fabioselau077 opened this issue Jan 13, 2024 · 7 comments
Open

controller in playlist widget? #1286

fabioselau077 opened this issue Jan 13, 2024 · 7 comments
Assignees
Labels
new issue New issue which has not been checked yet

Comments

@fabioselau077
Copy link

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?

@fabioselau077 fabioselau077 added the new issue New issue which has not been checked yet label Jan 13, 2024
@winterdl
Copy link

playlist.currentState?.betterPlayerPlaylistController?.betterPlayerController

@jczerniakiev
Copy link

jczerniakiev commented May 1, 2024

The solution proposed by @winterdl does work, however, the listener never receives changedPlaylistItem. Every other event is received except this one.

@waqadArshad
Copy link

Hi, how do I access the playlist here? I mean what is this playlist? @jczerniakiev @winterdl

@jczerniakiev
Copy link

@waqadArshad
Copy link

waqadArshad commented May 11, 2024

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?

@jczerniakiev
Copy link

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?

Sure you can: https://pub.dev/documentation/better_player/latest/better_player/BetterPlayerController/play.html

@waqadArshad
Copy link

Thanks a lot. appreciate it. @jczerniakiev. I'll give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

5 participants