Display Video Duration

New thread 2 posts from 2 participants
  • Started 5 months ago ago by Anastasiya G.
  • Replied 4 months, 3 weeks ago ago by Anastasiya G.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #2933

    Anastasiya G.

    Is it possible to display video duration when displaying a video gallery?
    When Vimeo videos are imported into the WP admin I can see the table for Video Duration. Is there a meta field or value that can be used to display this value on the front-end?

    Thanks

    #2934

    Constantin

    Hi,

    Yes, there is a way. All video data is stored in post custom meta “__cvm_video_data”. It’s an array, to get the duration you can do something like this:

    #2936

    Anastasiya G.

    Perfect,

    Thank you so much Constantin!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.