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

[Enhancement] Expose listening APIs #139

Closed
bdlukaa opened this issue Aug 24, 2024 · 1 comment
Closed

[Enhancement] Expose listening APIs #139

bdlukaa opened this issue Aug 24, 2024 · 1 comment
Labels
wontfix This will not be worked on

Comments

@bdlukaa
Copy link

bdlukaa commented Aug 24, 2024

Currently, the fvp native player's APIs lack events or methods for directly listening to changes in position, duration, and buffering state. This makes it difficult to create features like progress bars, time displays, or custom buffering indicators. Exposing these APIs would significantly improve the developer experience and enable the creation of more advanced playback functionalities. The current native player APIs do not provide any built-in mechanisms for developers to track or react to changes in position, duration, or buffering.

Proposal

We propose the following adding some API improvements, like:

player.onPositionChange((duration) {})

and similar methods for other options.

@wang-bin
Copy link
Owner

events are already in video_player and video_player_mdk.dart, the can be reused in your code

@wang-bin wang-bin added the wontfix This will not be worked on label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants