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
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
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
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>
}
Hi Aditya,
You can do this by changing the width and height of the iFrame itself if am not mistaken.
//fuji
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.
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.
:)
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
any clues..
is working on a reply...