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

feat: volume fade in/out #2121

Open
wants to merge 80 commits into
base: main
Choose a base branch
from

Conversation

lovegaoshi
Copy link
Contributor

adds volume fade in/out effect.

on not android platforms this is done by using Animated.Value. I do not have iOS to test but it seems like iOS doesn't have a background react rendering problem that this should work.

on android this is done by using doublesymmetry/KotlinAudio#91. because Animated.Value doesnt update within HeadlessJsTaskService I added a simple linear fading function for it.

kotlin's scope.async doesn't work as I expected (Deferred.await() doesn't wait for RN's Promise.resolve?) any help is appreciated! because of this I cannot reliably await for the volume fading change to complete, so I used event emitting and handle the callback function within that event emitting, which is quite unnecessarily complicated, compared to a simple callback function in Animated.Timing.Start().

lovegaoshi and others added 30 commits June 15, 2023 06:20
feat: full android auto support
@mihaibulic2
Copy link

I'd love to see this get submitted into 4.1.0 — @dcvz do you think that's possible?

Copy link
Contributor

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 30, 2024
@lovegaoshi
Copy link
Contributor Author

lovegaoshi commented Jan 30, 2024 via email

@github-actions github-actions bot removed the Stale label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants