Copied to clipboard

Flag this post as spam?

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


  • WestLifeUmbraco 39 posts 70 karma points
    Nov 02, 2012 @ 19:06
    WestLifeUmbraco
    0

    How can I change width and height of a video from YouTube?

    ASP.NET 4
    Umbraco 4.9
    Universal_Media_Picker_1.5.zip
    [UMP]_YouTube_Provider_1.0.zip

  • Giles 4 posts 24 karma points
    Dec 13, 2012 @ 02:19
    Giles
    0

    Did you resolve this?

    I'd do it with my own XSLT Macro that implemented the YouTube iFrame API e.g.:

    <iframe id="player" type="text/html" width="640" height="390"
      src="http://www.youtube.com/embed/u1zgFlCw8Aw"
      frameborder="0"></iframe>

    You'd just need to write a macro that wrote out the above but with the YouTube ID (u1zgFlCw8Aw) replaced with the value stored by your UMP YouTube picker.

    Then you could change the width and height to whatever you like.

    The YouTube iFrame API stuff is here:
    https://developers.google.com/youtube/iframe_api_reference

    The free Umbraco videos would probably be a good place to start for XSLT macros.

Please Sign in or register to post replies

Write your reply to:

Draft