WordPress.org

Ready to get started?Download WordPress

Forums

YouTube
[resolved] get lenght of video (3 posts)

  1. alahucky
    Member
    Posted 11 months ago #

    Hello, is it possible to get and show lenght of video via Youtube plugin in excerpt, or not?
    Do you know about any code which can do it? I am adding videos by this plugin so it will be helpful when code should cooperate with it. Thanks.

    http://wordpress.org/plugins/youtube-embed-plus/

  2. embedplus
    Member
    Plugin Author

    Posted 10 months ago #

    alahucky,

    Your best bet is to take a look at the YouTube data retrieval APIs:
    https://developers.google.com/youtube/v3/
    https://developers.google.com/youtube/iframe_api_reference

    You likely want to focus on "duration" there.

    -EmbedPlus Team

  3. embedplus
    Member
    Plugin Author

    Posted 10 months ago #

    Oh and with this being a video plugin, we thought it would be quite apropos to also share an API overview video from YouTube:

    http://www.youtube.com/watch?v=ylLzyHk54Z0

    Hopefully, that will help you get started.

    Cheers,
    -EmbedPlus Team

Reply

You must log in to post.

About this Plugin

About this Topic