Copied to clipboard

Flag this post as spam?

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


  • rn4j0r 15 posts 85 karma points
    Oct 23, 2014 @ 22:46
    rn4j0r
    0

    Embedding mp3s on a Content page

    I am having trouble figuring out how to add embed mp3s onto a inner page.

    Is there a package I need to install?

    What is the easiest way to go about doing this?

    I just need the ability to embed a playable mp3 file on a inner content page and it be playable upon click.

    Thanks in advance!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 23, 2014 @ 23:17
    Dennis Aaen
    0

    Hi m4jOr,

    If you are using Umbraco 7, then one way that I see that you could do it is by on the document type for the page where you need to have your mp3 player you could add a property of the media picker, and then the user can pick one or multiple mp3 files,http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors-v7/Media-Picker

    And then you need to write some Razor to pull out the data from Umbraco, for the player I think that you could use the HTML5 Audio tag, try to see how it´s configured http://www.w3schools.com/html/html5_audio.asp

    As I said you could have your mp3 files stored in the media section in Umbraco, and let the user pick it by using the media picker. If you choose this way make sure to add the mime types in the web.config so you don't have to worry about the server settings for these. Have a look at this blogpost http://madskristensen.net/post/prepare-webconfig-for-html5-and-css3

    Hope this helps, and make sense,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft