SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Aug 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting YouTube video to play in HD in Colorbox?

    We have a drupal website, and using Colorbox to present our popup images and video. We have our product demo videos loaded onto YouTube that were created in HD. I need to force the YouTube video to play in 720 HD in the Colorbox popup window. Currently it is defaulting to 360 and you have to manually select a higher resolution. I have found all kinds of ways to force HD playback, but for other iframes and nothing that works in our Colorbox code.

    Here is the code I have:

    <p><a href="http://www.youtube.com/embed/FrLDc2HWALo?rel=0&amp;width=853&amp;height=480&amp;iframe=true" class="colorbox-load"><img src="I've removed the location of the image for company security issues" alt="VirtualViewer HTML5 Product Spotlight Video" width="677" height="393" /></a></p>

    Please help, I would be ever so grateful.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,048
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Welcome to the forums

    As per this answer on the YouTube support forum, it seems that the iframe embed mechanism is intelligent and only loads the closest resolution according to the size of the iframe.

    One workaround suggested here is to try changing the dimensions of the iframe to something like 1280x720 and see if that helps.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •