I am looking for a way to display video metadata, especially video duration inside a Panel. I have set up a Custom Page/panel, set Video clip node type in the Selection rules of this page, but cannot find duration neither other metadata for the video.

As I found, these fields are available in Views module:

Metadata fields for a video in Views

Now, is there any way to show up these metadata inside panels without using Views? Calling up a view just for query the duration of the video seems to be redundant and inefficient.

Looking at the SQL query of the View could be helpful:

SQL query for retrieving duration of a video in Views

Apparently, the video duration is obtained from a separate table called video_queue. I wonder if the solution is to find a way to add a Context to my Panel which extracts video metadata from video_queue table for the current node.

Nevertheless, I am not familiar with Drupal API and PHP coding, so a solution without digging into these is highly preferred.

CommentFileSizeAuthor
bMmPs.png16.6 KBnickaein
YxKzR.png19.16 KBnickaein
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nickaein’s picture

I have also submitted this question on http://drupal.stackexchange.com/q/96551/12160.

heshanlk’s picture

Status: Active » Closed (works as designed)