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

[new plugin] Add first version for crossfade plugin #1012

Merged
merged 2 commits into from
Feb 7, 2023
Merged

Conversation

th-ch
Copy link
Owner

@th-ch th-ch commented Feb 1, 2023

This PR adds a plugin to crossfade between songs (fixes #945 and #634) - it's a first version that plays the sound in the background to be able to crossfade. A simpler version could be shipped that just fades in/out the music without crossfading.

@th-ch th-ch merged commit 35859a6 into master Feb 7, 2023
@th-ch th-ch deleted the crossfade-plugin branch February 7, 2023 20:35
await transitionAudio.play();
await transitionAudio.seek(video.currentTime);

video.onseeking = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't those video.onseeking be video.addEventListener('seek' => {})?

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.

[Feature Request]: Fade in/out (crossfade)
2 participants