Closed (fixed)
Project:
Video
Version:
7.x-2.8
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2012 at 23:11 UTC
Updated:
4 Jan 2016 at 14:50 UTC
Jump to comment: Most recent
I would like to change the formatting of videos' duration as displayed by views to not display segments that have no value. For example, a video of 3 minutes and 30 seconds duration would not display the "Hours" section, but would simply show the minutes and seconds. (IE, 3:30 instead of 00:03:30.)
Is this possible? Planned for a future version? Something that can be achieved with an additional contrib? I've done a fair amount of searching around, and don't see anything applicable.
Thanks for your time.
Comments
Comment #1
smhsht commentedYou can edit file "video_handler_field_video_duration.inc" at .../sites/all/modules/video/views/ and set the format of generated time from "H:i:s" to "i:s". not sure what will happen to videos longer than one hour. also both minutes and seconds are double characters. hope someone modify it in correct way.
Comment #2
hypertext200