Foliovision › Forums › FV Player › How to … › Add video service of vk.com
-
-
Link: https://vk.com/video-206345111_456239775
This is a plugin but has not been updated: https://wpsocket.com/plugin/lidplay/Thanks, Martin
Hello HungTQ,
that URL does’t seem to open without a VK.com account. Please check if it’s private or publicly available.
Alternatively please look up “og:video” in its HTML code and send over the tag which might look like this:
<meta property="og:video" content="https://vk.com/video_ext.php?oid=60847820&id=166396217&hash=710ca36d452e29f8"/>
Thanks,
MartinYes, you need to be logged in to watch the video. The previous LidPlay Player plugin did this, but it’s currently unusable because it hasn’t been updated. You can check out its features here https://wpsocket.com/plugin/lidplay/
Hello HungTQ,
I did check that LidPlay plugin before. It was very basic. It seems it could only work with some much older version of VKontakte.
Supporting private videos would involve a lot more work. Our plugin would have to use OAuth to let you give it permission to access your private posts on VKontakte: https://vk.com/dev/auth_sites
However the access token giving our plugin the permission would expire in 12 hours it seems. See that the “expires_in” time on that page is 43200. So you would have to constantly refresh that token constantly. But perhaps there is a way of getting a long-lasting token. In case of Facebook it used to last for 2 or 3 months.
Thanks,
MartinThank you @Martin for your patient response, is the solution for vk.com possible?
Hi HungTQ,
We’ve worked hard on VK.com but VK.com have improved their video protection. It’s still possible to download VK.com videos (emulating an iPhone for instance) but you would have to download the videos and then host them on your own server.
If we try to playback the videos in the user’s browser, it just won’t work.
Thanks, Alec