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

smhsht’s picture

Issue summary: View changes

You 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.

hypertext200’s picture

Status: Active » Closed (fixed)