Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 9 months ago

#57935 closed enhancement (wontfix)

Native support vk.com videos

Reported by: arskrigitsioniets's profile arskrigitsioniets Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Editor Keywords:
Focuses: Cc:

Description

What problem does this address?
I'm always frustrated when I can't insert a video from Vk.com in my articles and have to use custom HTML+CSS for this. Vk.com is a Russian social net that is very popular in Russian and CIS countries.

What is your proposed solution?
It would be nice if WordPress had native support for VK embed videos, like there's now for YouTube.

Change History (3)

#1 @cadic
2 years ago

WordPress by default is trying to retrieve meta information for the video using the oEmbed https://oembed.com protocol.

vk.com unfortunately doesn't support oEmbed (or support it with a non-standard approach). That's why WordPress can't extract the correct iframe code for VK's video player from the link, and you need to add HTML code yourself.

So, I believe vk.com need to implement oEmbed on their side first, then we can discuss if it's worth to add it to the support list of the Embed Block.

#2 @johnbillion
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

That's correct, if VK doesn't support oEmbed then there's nothing that WordPress can do. The ideal solution is that VK supports oEmbed Discovery, then it'll "just work" without WordPress core needing to do anything.

#3 @nico23
9 months ago

@arskrigitsioniets

I just found this via searching. Just wanted to let you know that I just released an update for my ARVE Plugin that uses regex to detect VK video URLs and generates embed codes with them.

It uses WordPress' embed API implementation that turns URLs into embed with regex without using oEmbed.

Core could easily support it with that API, but it seems they decided to use only oEmbed.

Since VK offers an API I assume I could get title, aspect ratio and thumbnail from it. If you are interested in me implementing the VK API into ARVE Pro let me know (paid).

Note: See TracTickets for help on using tickets.