Tracks playing out of Sync #2868
Unanswered
phonographic
asked this question in
Q&A
Replies: 1 comment
-
You might check how Multitrack does it. Basically subscribe to the timeupdate event and call setTime on the other track if it’s time differs too much from the first one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a plugin that plays 2 tracks at the same time. The waveforms are overlaid. I have 3 buttons that allow me to switch between track1 only (Track2 does not display and is muted / volume 0) Track 1&2 (both tracks display) Track2 (Only track 2 displays and is muted / volume 0). Everything is working fine but when I toggle between these states, one of the tracks will go out of sync. I have tried a few things but no success. Here is the js code. Can anyone help?
`class AudioWaveJS extends elementorModules.frontend.handlers.Base {
}
jQuery( window ).on( 'elementor/frontend/init', () => {
elementorFrontend.elementsHandler.attachHandler( 'audio-mixer-of-love', AudioWaveJS );
} );
`
Beta Was this translation helpful? Give feedback.
All reactions