Closed (fixed)
Project:
Video
Version:
7.x-2.10
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 May 2013 at 04:21 UTC
Updated:
5 Jun 2013 at 15:00 UTC
I want to print the video duration in my page--contenttype.tpl.php. How can I get the length of the video and print it out?
I know it can be printed using Views, but can't find anything on printing it using PHP in my tpl.php.
Anyone?
Comments
Comment #1
Jorrit commentedAtr this moment you would have to query the video_queue table. I'll add the value to the field data structure (ie: $node->field_video[und][0]['duration'] == 123) in the next release.
Comment #2
haysuess commentedThanks for the reply, I saw you mention that in another post but it was pretty old if I recall correctly, so I figured it was added already.