Copied to clipboard

Flag this post as spam?

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


  • Aditya.A 77 posts 96 karma points
    Jul 29, 2013 @ 10:52
    Aditya.A
    0

    macro for youtube

    Hello guys...

     

    I have to insert a youtube video through a macro..The utube id(11 digited) will be provided as a textstring by the user. any help will do a lot

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 29, 2013 @ 20:35
    Fuji Kusaka
    0

    Hi,

    What you could do is make use of jquery prettyPhoto to open the video in an iframe. So each of you media or node will consist of a textString where you will copy > paste the Url of youtube embed video.

    Here you can view some example . So you can add only the 11 digited to the textString

    <ahref='http://www.youtube.com/watch?v=<xsl:value-of select="propertyAlias" />'rel="prettyPhoto"title="My YouTube Video">My Vid</a>
  • Aditya.A 77 posts 96 karma points
    Jul 30, 2013 @ 07:24
    Aditya.A
    0

    Hello Fuji,

     

    i am using the below code and it is working.. The youtube video is now in the size 121X73 pix.

    now when ever someone play the video i want the video to be played in an enlarged size like 730 X 325. so it it possible if so

    thank u in advace for letting me know

     

    @if(@Model.HasProperty("videoId")){

     <div class="scale_vid">

     <iframe width="220" height="150" src="http://www.youtube.com/embed/@Model.GetPropertyValue("videoId")" frameborder="0" allowfullscreen></iframe>

     </div>

    }

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 30, 2013 @ 07:53
    Fuji Kusaka
    0

    Hi Aditya,

    You can do this by changing the width and height of the iFrame itself if am not mistaken.

     

    //fuji

     

     

  • Aditya.A 77 posts 96 karma points
    Jul 30, 2013 @ 07:57
    Aditya.A
    0

    Hello Fuji,

    yes ...if i can do it... but... initially the video should be in 121X73 pix.

    now when ever someone play the video i want the video to be played in an enlarged size like 730 X 325.

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 30, 2013 @ 08:08
    Fuji Kusaka
    0

    Hmmmm,

    So you mean your intial video on youtube is 121x73px ? Why not upload something bigger and then make use of 730x 325 in your iframe ?

    Getting video to stretch will down grade the quality of your video in a way.

  • Aditya.A 77 posts 96 karma points
    Jul 30, 2013 @ 08:12
    Aditya.A
    0

    :)

    Requirements...wat can i say.

    No need to bother about the video clarity.Because client will keep changing the video and in future he might use a good quality video.

    so when he goes to th page ,it is shown as small thumbnail view of the video. when he play the video it should be poped up on the screen

    with the 730X325 pix

  • Aditya.A 77 posts 96 karma points
    Jul 31, 2013 @ 05:53
    Aditya.A
    0

    any clues..

Please Sign in or register to post replies

Write your reply to:

Draft