A
A
afatsum2013-12-11 10:19:16
JavaScript
afatsum, 2013-12-11 10:19:16

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

5 answer(s)
M
Mikhail Osher, 2013-12-11
@miraage

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).

E
Egor Ogurtsov, 2013-12-11
@mrdubz

HTML5 History API
habrahabr.ru/post/123106

V
Vitaly Zheltyakov, 2013-12-11
@VitaZheltyakov

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

I
Ilya Sidorenko, 2013-12-11
@iskros

This was asked at WSD 2013

S
sasha, 2013-12-12
@madmages

On the mobile site, an HTML5 player works, and on the desktop, by default, a Flash player controlled by Javascript. and such a thing as ajax + HTML5 History API allows you to collapse and walk around VK

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question