A
A
Alexander2016-01-05 08:02:34
API
Alexander, 2016-01-05 08:02:34

How to embed a third-party video player on classmates?

I'm trying to figure it out ..... how to embed the player with one request.
Here is an example of how to do it - ok.ru/profile/522849846880/statuses/64809490350176
When playing, the player is loaded from dailymotion, and not the standard player.
I started looking at the API documentation on dailymotion - https://developer.dailymotion.com/player#player-oembed
The oembed function, I guess that's what I need. But if I load a link of the form - www.dailymotion.com/embed/video/x3jtadn
, then on classmates it is loaded as a link, but I need it as a player.
Help me to understand. I seem to be looking in the right direction :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrzej Wielski, 2016-01-05
@wielski

<link rel="image_src" type="image/jpeg" href="http://s1.dmcdn.net/PKiEm.jpg" />
<link rel="thumbnail" type="image/jpeg" href="http://s1.dmcdn.net/PKiEm.jpg" />
<link rel="alternate" type="application/json+oembed" title="Прикол. Кот - нянька убаюкивает плачущего ребенка" href="http://www.dailymotion.com/services/oembed?url=http%3A%2F%2Fwww.dailymotion.com%2Fvideo%2Fx3b96sa_%25D0%25BF%25D1%2580%25D0%25B8%25D0%25BA%25D0%25BE%25D0%25BB-%25D0%25BA%25D0%25BE%25D1%2582-%25D0%25BD%25D1%258F%25D0%25BD%25D1%258C%25D0%25BA%25D0%25B0-%25D1%2583%25D0%25B1%25D0%25B0%25D1%258E%25D0%25BA%25D0%25B8%25D0%25B2%25D0%25B0%25D0%25B5%25D1%2582-%25D0%25BF%25D0%25BB%25D0%25B0%25D1%2587%25D1%2583%25D1%2589%25D0%25B5%25D0%25B3%25D0%25BE-%25D1%2580%25D0%25B5%25D0%25B1%25D0%25B5%25D0%25BD%25D0%25BA%25D0%25B0_animals&amp;format=json" />
<link rel="alternate" type="application/xml+oembed" title="Прикол. Кот - нянька убаюкивает плачущего ребенка" href="http://www.dailymotion.com/services/oembed?url=http%3A%2F%2Fwww.dailymotion.com%2Fvideo%2Fx3b96sa_%25D0%25BF%25D1%2580%25D0%25B8%25D0%25BA%25D0%25BE%25D0%25BB-%25D0%25BA%25D0%25BE%25D1%2582-%25D0%25BD%25D1%258F%25D0%25BD%25D1%258C%25D0%25BA%25D0%25B0-%25D1%2583%25D0%25B1%25D0%25B0%25D1%258E%25D0%25BA%25D0%25B8%25D0%25B2%25D0%25B0%25D0%25B5%25D1%2582-%25D0%25BF%25D0%25BB%25D0%25B0%25D1%2587%25D1%2583%25D1%2589%25D0%25B5%25D0%25B3%25D0%25BE-%25D1%2580%25D0%25B5%25D0%25B1%25D0%25B5%25D0%25BD%25D0%25BA%25D0%25B0_animals&amp;format=xml" />

Let's take a closer look.
image_src and thumbnail are video placeholders.
application/json+oembed - link to the script that generates oembed in json format.
application/xml+oembed - link to the script that generates in xml format.
When you open the application/json+oembed link , you can see where the html code is stored, and the rest of the data.
Good luck, hope you figure it out :)

A
Alexander, 2016-01-06
Darin @vertyoz

Does not work .....
Returned to the solution of this issue.
Question: Can I load a third-party player into Odnoklassniki with one url request?
What I do:
1) I try to load the link www.dailymotion.com/embed/video/x3jtadn
It turns out 07f9121036404426a40b77b5b847ef52.jpg
2) I try to load www.dailymotion.com/video/x3jtadn
Result a524db0209ce4321aaebc981e7678e6a.jpg
And now, how can I do it so that it looks like this:
9e1f506d9ac74f1c8e32f3c1c7236e6b.jpg

V
Valery Ozhiganov, 2016-01-08
@vozhiganov

In order for the player to be non-standard, partner domains are added to the white list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question