Answer the question
In order to leave comments, you need to log in
What technologies are used to play music in vk?
I turn on the music in the iPad browser in VKontakte, turn it off, and the music continues to play and goes through the playlist. How is it implemented? I tried javascript, but it stops working as soon as we minimize the browser.
Answer the question
In order to leave comments, you need to log in
st2.vk.me/js/al/audio.js?218
st2.vk.me/js/al/audioplayer.js?129
There are also some lines in common.js.
In general, it is done in JS, I suspect that it is done with a fallback to flash (or maybe not).
It's called FullAjax. VK scripts independently (on a timer) send requests to the server to update information without redrawing the page. Likewise with music. The music itself is played using sound + Flash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question