D
D
deleted-mezhevikin2011-03-08 12:47:14
PHP
deleted-mezhevikin, 2011-03-08 12:47:14

Formation of the Vkontakte video code

It is necessary to automatically generate the iframe code from the video link:

vkontakte.ru/video-15228195_139953350 with the video vkontakte:


<iframe src="http://vkontakte.ru/video_ext.php?oid=-15228195&id=139953350&hash=9fbf1b10f49ace31" width="607" height="360" frameborder="0"></iframe>


It is not clear how the hash parameter is formed, api vkontakte.ru/developers.php?o=-1&p=video.get also does not provide the player code.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lev Lybin, 2011-03-20
@lybin

Most likely a hash with a salt, you probably will never know how it is calculated.
I don’t quite understand how and why this is, maybe because it’s 5 am ...
You can look in the direction of browser extensions vk downloader for FF, MusigSig for chrome, etc.
See how they tear out a direct link to a video file and insert it into your player;)

K
Kareshka, 2011-03-20
@Kareshka

I don't think it can be recognized. This hash, as I understand it, is needed so that the video recording embedded on a third-party site is played, even if it is closed by privacy, and if you could get this hash, then you could safely watch hidden videos (provided that there is a link to her).

D
dezo, 2011-03-20
@dezo

Hash is needed for the video section so that video hosting is not made from VKontakte, that is, the hash is formed for different IP addresses so that it is not common to download the same entry via a direct link, it is different for everyone. I think I explained clearly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question