A
A
Alexander2016-12-17 16:36:17
YouTube
Alexander, 2016-12-17 16:36:17

How to view a video from youtube on a website using its link, like in VK?

667d579b49384505a690de9c5a65abdb.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Илья, 2016-12-17
@kentuck1213

Под видео на ютубе предлагают хмтл код для вставки на страницу. Просто правильный UID подставляйте. ВК так и делает.
Например, в форме замечена ссылка на видео https://www.youtube.com/watch?v=_GuOjXYl5ew
Выделяем из этой ссылки UID: "_GuOjXYl5ew"
Создаём iframe
UPD:
Есть документация на русском https://developers.google.com/youtube/player_param...

R
Rurik Rostislavich, 2016-12-17
@snipeer777

Parse by link

V
vintage, 2016-12-18
@vintage

It is correct to do this through oembed, which is supported by YouTube and many other services.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question