Copied to clipboard

Flag this post as spam?

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


  • Bjarne Fyrstenborg 1286 posts 4060 karma points MVP 8x c-trib
    Nov 23, 2016 @ 13:14
    Bjarne Fyrstenborg
    0

    Use parameters in embed media

    When inserting Embed in the grid editor, e.g. a YouTube video, it doesn't seems to add parameters.

    For instance you can add rel attribute with value 0 to disable related videos at the end of the video playing: https://www.youtube.com/watch?v=MVRsxMdtmnU&rel=0

    This works in the embed preview, but not in the rendered output. https://www.youtube.com/embed/MVRsxMdtmnU?feature=oembed

    if I update DOM with https://www.youtube.com/embed/MVRsxMdtmnU?feature=oembed&rel=0 via console window it works.

    Ideally it should also support paramters like autoplay, playlistId etc. like in Warren's YouTube package: https://github.com/warrenbuckley/YouTube-Umbraco/blob/master/YouTube/Extensions/YouTubeExtensionMethods.cs#L18

    Is there any way to allow this or configurate it in EmbeddedMedia.config?

    /Bjarne

  • David Peck 690 posts 1896 karma points c-trib
    Nov 23, 2016 @ 15:08
    David Peck
    0

    The way OEmbed works is to call a third party to ask it to convert your URL in to an embed format. If that doesn't allow you to keep your query string values (which it won't) then I think you'll have to write your own embed provider.

    This might help. http://www.nibble.be/?p=451

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies