I would like you to consider adding support for video and video thumbnail image URLs.

I am creating a social video site, and using tokens for Open Graph (metatag) thumbnail image URLs would be really handy.

Open Graph and/or Meta tags would be one great potential usage area, which is not directly part of the Video module itself, but I provided as an example.

Open Graph (metatag)

Comments

michael.k’s picture

This is a great idea. Any support for structured metadata info is super helpful.

Plankenkoorts01’s picture

Are you (or is anybody else) any further on this already?

thsutton’s picture

I'm going to have a go at this today.

thsutton’s picture

Status: Active » Needs review
StatusFileSize
new4.55 KB

Here's a first cut. It's horrible, awful code (and tested on 7.x-2.9 not HEAD) but seems to do useful things.

Things it needs:

  1. To be less awful.
  2. Given I stole most of it from token.module, it's probably needlessly general.
  3. I suspect that the player doesn't get output.
  4. Pass the rest of the args to the formatters.
  5. See about including a sub-sub-token for each image style.

I'll try to do a bit more work on this over the weekend.

thsutton’s picture

StatusFileSize
new5.66 KB

Previous patch only processed sub-tokens (like [node:field_video:thumbnail:url]) in the presence of their parent (e.g. [node:field_video:thumbnail]). This patch fixes that.

newtoid’s picture

subscribing

newtoid’s picture

Patch worked like a charm, however it seemed to stop the ability to upload videos

raulmuroc’s picture

Issue summary: View changes

+1 on that!

brycefisherfleig’s picture

Status: Needs review » Needs work

Since this seems to be stopping video uploads, looks like this still needs work.

biigniick’s picture

Any more movement on this or a solution? I've run into this issue too.