Copied to clipboard

Flag this post as spam?

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


  • keilo 568 posts 1023 karma points
    Aug 04, 2014 @ 09:14
    keilo
    1

    How to pass parameters to iframe Url

    First of all thank you for this package!

    Is there a simple way (without recompiling/branching source) to pass the parameters to the iframe src

    like: wmode=transparent&vq=hd1080&rel=0&showinfo=0&iframe=1&fs=1&modestbranding=0&autoplay=0&theme=dark&feature=oembed

    when using typedVideo.Player.EmbedHtml ?

    many thanks!

     

     

     

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Aug 04, 2014 @ 11:02
    Warren Buckley
    0

    Hi Kello,
    This is a good idea and I will add to issue tracker on the GitHub Project page so it does not get forgotten about.

    This will most likely be an extension method that I will write and enable the same settings at the player API here:
    https://developers.google.com/youtube/youtubeplayerdemo

    This will take me a day or two to do around my normal work & home life.

    Thanks,
    Warren

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Aug 04, 2014 @ 15:03
    Warren Buckley
    1

    Hi Kello,
    This is done in the latest commit with an extension method & will be available here:
    https://ci.appveyor.com/project/warrenbuckley/youtube-umbraco/build/1.0.2.53

    Cheers,
    Warren

  • keilo 568 posts 1023 karma points
    Aug 04, 2014 @ 18:47
    keilo
    0

    Hi Warren

    Thanks for the swift update! 

    Im new to appveyor/git, would you be able to advise how to go about updating to 1.0.2.53 ?

    Cheers!

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Aug 05, 2014 @ 10:04
    Warren Buckley
    0

    Hi Kello,
    No problem GitHub is where the code for this project lives and AppVeyor is a service that allows me to automatically build the project and create the Umbraco Package ZIP files and the NuGet package automatically from my latest code commit to GitHub.

    On the artifacts tabs you will see two files to download, the Umbraco package ZIP or the NuGet package.

    You will want to download the Umbraco ZIP file from this page.
    https://ci.appveyor.com/project/warrenbuckley/youtube-umbraco/build/1.0.2.53/artifacts

  • keilo 568 posts 1023 karma points
    Aug 07, 2014 @ 07:01
    keilo
    0

    Hi Warren

    Thanks for the crash course in AppVeyor :) Its pretty cool stuff... Need to catch up with these soon..

    I have installed the 1.0.2.53 update. Now how do I go about using the extension method you have added within the Razor, say like pass params wmode=transparent&vq=hd1080&rel=0&showinfo=0&iframe=1

    Cheers

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Aug 07, 2014 @ 17:51
    Warren Buckley
    1

    Hello Keilo,
    The new stuff can be found here on the readme docs page
    https://github.com/warrenbuckley/youtube-umbraco

    You can use the new extension method to use the YouTube player API options here: https://developers.google.com/youtube/youtubeplayerdemo

    @foreach (var typedVideo in Model.Content.GetPropertyValue<YouTube>("video"))
    {
        <div>@Html.Raw(typedVideo.EmbedVideoWithOptions(modestBranding: true, theme: YouTubeExtensionMethods.Theme.light))</div>
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft