Copied to clipboard

Flag this post as spam?

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


  • Dale McCutcheon 32 posts 135 karma points
    Aug 02, 2016 @ 12:50
    Dale McCutcheon
    0

    Hey Guys,

    I am trying to embed an mp3 audio file into my rich text editor, i have tried a number of things including trying to extend the rte through the TinyMCE config file but cannot seem to get a solution.

    Ideally i want to be able able to embed an mp3 players into my rte to play audio files through my site.

    Thanks Dale

  • David Peck 687 posts 1863 karma points c-trib
    Aug 02, 2016 @ 14:54
    David Peck
    0

    Can you stick it in to Soundcloud? If so then you can just use the built in embed functionality. Alternatively anything that supports oembed can be setup (see /config/embeddedmedia.config).

    Other options would be to create your own embed provider (e.g. Umbraco.Web.Media.EmbedProviders.Twitgoo) or more likely create a macro or grid editor (if you're using the grid) that plays if using a JS plugin such as http://kolber.github.io/audiojs/

    Or one of these packages:

  • David Peck 687 posts 1863 karma points c-trib
    Aug 02, 2016 @ 15:01
    David Peck
    0

    Setting your own embed markup looks easy!

    https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/Media/EmbedProviders/Twitgoo.cs

    Depending on how much control you want, you could always just use the HTML5 Audio tag. http://caniuse.com/#feat=audio

  • Dale McCutcheon 32 posts 135 karma points
    Aug 02, 2016 @ 16:27
    Dale McCutcheon
    0

    Hi David,

    Thanks for getting back to me, i have explored the other options such as Soundcloud (but i am trying to keep it as in-house as possible), HTML5 tags etc however the main problem i have is, I want the mp3 player to appear next to the text within the RTE.

    Worst comes to worst i can separate it out and have different markup specifically for the player. I was just exploring the options of potentially having this along side content within the RTE.

    I will maybe try and create my own embed markup and see if that works.

    Thanks Dale

  • David Peck 687 posts 1863 karma points c-trib
    Aug 03, 2016 @ 07:35
    David Peck
    0

    Creating your own Embed provider looks pretty simple and Audio JS is easy too. If you get it working perhaps you could post the code here? Good luck.

Please Sign in or register to post replies

Write your reply to:

Draft