Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason 1 post 71 karma points
    Jan 08, 2021 @ 16:21
    Jason
    0

    Non-image media (e.g. audio files) and default properties?

    Hi all. First time posting here.

    I've been working on a project that requires our site editors to upload interview MP3s to our Media Library. I'm planning on creating a specific Media Type for this, which will include properties for a transcript of the uploaded interview files, which will be rendered out along with an <audio> tag.

    My question is: I know that for images, Umbraco provides the ability to define umbracoWidth and umbracoHeight as properties on image media types. Are there any equivalent properties that can be defined and used for non-image media types? Or, is there any easy way to access to get the meta data associated with something like an MP3? Say, for example, I wanted to display in my template the duration of an audio clip that is in my media library and that is being output in my template. I'd prefer to stay away from relying on plugins or third-party solutions to this.

    (Edit: I should mention this will be for a site developed on Umbraco 7.12.3, if that should matter.)

    Appreciate any assistance on this!

    Jason

Please Sign in or register to post replies

Write your reply to:

Draft