O
O
Olesya_v2021-08-31 16:17:08
JavaScript
Olesya_v, 2021-08-31 16:17:08

How to duplicate audio player js?

codepen - player source
How to make player 3 duplicate the state of the track being played. How does vk for example.
That is, as soon as one of the tracks is launched, a duplicate player with the same timeline should appear. When you change the timeline of a running track, the slider in the duplicate should also change and vice versa.
Tell me please)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-08-31
@Rsa97

Subscribe to player events and display everything you need. Well, in the opposite direction, similarly, subscribe to control events and transfer them to the player.
https://www.w3schools.com/tags/ref_av_dom.asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question