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

[FEATURE REQUEST] The lack of async on the controller makes it completely useless. #941

Open
sidetraxaudio opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sidetraxaudio
Copy link

Is your feature request related to a problem? Please describe.
Great work overall and I'd hate to be discouraging but external control using the controller is completely useless due to a lack of futures.
If you can't await for a task that is asynchronous by nature (aka anything on the internet) you can't write control logic. I'm very surprised considering how much good work you've done on this. I wondered if there is there an issue with decoding youtube responses?

For example:
Having a controller that contains the youtube controller and also stores the last playback position. When the user navigates back to the page that contains the video I want to 're-cue' the video at the previous position, pause it and wait for them to press play if they'd like to continue. This is not possible due to a lack of async programming on the controller.
It is impossible to:
seekTo(last position);
pause();
What is really needed is:
seekTo(position).then(pause());
or
await seekTo(position);
await pause();

Describe the solution you'd like
Implement async programming on the controller if possible because even basic external control logic is impossible.

@sidetraxaudio sidetraxaudio added the enhancement New feature or request label Apr 25, 2024
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