• Resolved merkin51

    (@merkin51)


    This plugin looks great and I’m convinced will do what I need it to do, but I’m really drowning in information in the documentation right now.

    I would like to list all of the videos uploaded to my media library in a table format, with the following columns:

    Title – Description – Tags – Length

    Is this achievable?

    https://wordpress.org/plugins/media-library-assistant/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your positive feedback and for your question. I know there is a lot of documentation and it can be hard to pick out an answer for a specific application. The short answer, though, is “yes”.

    You can use a custom markup template to compose a table-based gallery. One example can be found in the “A Table-based Style and Markup Template Example” section of the Settings/Media Library Assistant Documentation tab. The “Item” section of the template in the example shows you how to access data like Title, Description and Tags (the terms: entry). You can also find information and examples in these earlier topics:

    Displaying text above the gallery, mla_heading

    PDF Feed alignment and numbering results

    You can also get a similar result without a custom template with something like this:

    [mla_gallery columns=1 post_mime_type=video size=icon mla_caption="{+title+} - {+description+} - {+terms:attachment_category+} - length?"]

    You can substitute attachment_tag or post_tag for attachment_category depending on which taxonomy you use for your “Tags”.

    I do not know where to source the “Length” element. I can see a playtime_string (and a playtime_seconds) element in the video metadata but there is no code in the current MLA version to extract it. I will investigate the possibility of adding an enhancement to my next MLA version.

    You may find this earlier topic of interest:

    Audio Player

    The solution there can easily be adapted to show the video-player.

    I will leave this topic unresolved until I hear from you if the above suggestions make sense. I will also investigate playtime_string. Thanks for your interest in the plugin.

    Thread Starter merkin51

    (@merkin51)

    Thank your for the response David, very useful indeed! What great support.

    Regards the video length, I see this in Attachment Metadata for the mp4 videos I am uploading:

    array (
      'filesize' => 55498918,
      'mime_type' => 'video/quicktime',
      'length' => 75,
      'length_formatted' => '1:15',
      'width' => 640,
      'height' => 480,
      'fileformat' => 'mp4',
      'dataformat' => 'quicktime',
      'audio' =>
      array (
        'dataformat' => 'mp4',
        'codec' => 'ISO/IEC 14496-3 AAC',
        'sample_rate' => 48000,
        'channels' => 2,
        'bits_per_sample' => 16,
        'lossless' => false,
        'channelmode' => 'stereo',
      ),
    )

    Any way we can pull that “length_formatted” to output?

    Thread Starter merkin51

    (@merkin51)

    Turns it it was very easy, using:

    [+meta:length_formatted+]

    David your plugin is genuinely an incredible achievement, I’m only just scratching the surface but it is obviously extremely powerful. With a bit of spit and polish, you could wrap this up into a premium product, and reap rewards for your work (I will be making a donation, mind!).

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and the kind words. Thanks as well for your offer to make a donation in support of the plugin and our Fair Trade work. Donations, reviews and positive feedback are a great motivator to keep working on the plugin and supporting its users.

    I keep spitting and polishing when I can, but I’m always distracted by adding another feature; I’m more a plumber than a painter, as you can see. Meeting my own personal standards for a Premium product would be a very tall order.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding accessing and displaying metadata in your [mla_gallery] output. Thanks for your interest in and support of the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Table of videos w/ title, desc , tags, length’ is closed to new replies.