Youtube size
  • Hello I have used PrettyPhoto on my page to show images withhin this.
    I also want to show Youtube movies in HD format.

    How to open movies in HD format in PrettyPhoto ?
    Youtube has a parameter hd=1 to show 720p , for 1080p I couldn't find, but 720p is ok.

    Page address is http://www.studioproart.waw.pl/#4
  • It would required some hacking right now. But I'll implement it as a parameter in the next version so it's easy.

    Thanks!
  • Hi scaron - coul you ellaborate on how you would hack the code to enable youtube videos to be embedded as hd by default please
  • babyewok - You have to look through the JS source code:

    case 'youtube':
    pp_dimensions = _fitToViewport(movie_width, movie_height);
    movie = 'http://www.youtube.com/embed/' + getParam('v', pp_images[set_position]);
    (getParam('rel', pp_images[set_position])) ? movie += "?rel=" + getParam('rel', pp_images[set_position]) : movie += "?rel=1";
    if (settings.autoplay) movie += "&autoplay=1";
    toInject = settings.iframe_markup.replace(/{width}/g, pp_dimensions['width']).replace(/{height}/g, pp_dimensions['height']).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, movie);
    break;

    As you can see above, whenever you set the movie youtube link, it starts to parse everything out to display it correctly.
    The way to get the HD working, is to simply look for:

    if (settings.autoplay) movie += "&autoplay=1";

    in the above code and append the HD setting like so:

    if (settings.autoplay) movie += "&autoplay=1";
    movie += "&hd=1";


    This will automatically set the video to the HD setting.
  • I tried this and it still doesn't work. :(

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!