• Resolved justmichael

    (@justmichael)


    I’m using Shadowbox JS to play an HD video. I do not want the video to play in the “small” default frame size. I want Shadowbox to show the video (a) in 720p format – which the video is optimized for – and (b) as large as possible, given the size of the browser, as long as it is no larger than the max resolution. I.e., the same way that pictures are enlarged by Shadowbox when you click on a picture.

    Possible?

    With this code, it seems not to be working as expected.

    <a href="https://www.youtube.com/v/Qt5fvDGnVbs">Qt5fvDGnVbs</a>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The size of the video must be fixed. Using something like:

    <a href="https://www.youtube.com/v/Qt5fvDGnVbs" rel="shadowbox;player=swf;height=480;width=640;">Qt5fvDGnVbs</a>

    If you have additional usage question about Shadowbox itself, please see https://www.shadowbox-js.com/usage.html

    Thread Starter justmichael

    (@justmichael)

    Well darn. I was hoping it had the same beautiful effect that it does for still pictures!

    Thread Starter justmichael

    (@justmichael)

    Umm and how do I specify for it to play at the higher resolution?

    Searching google a bit, as this is more of a youtube question than a shadowbox question:

    https://www.youtube.com/v/Qt5fvDGnVbs&ap=%2526fmt%3D22

    Thread Starter justmichael

    (@justmichael)

    Hmm – so does that mean you’re not sure how to do it? You’re responsive; YouTube is not.

    Also – do you know how to specify that the video starts automatically upon loading? The user expectation is that when they tap on the thumbnail, the movie will expand (into shadowbox) and start playing.

    Sorry for all the questions. I’m a total video newbie.

    I gave you the answer for higher resolution, in the form of the link that I pasted.

    As for autoplay, I searched google for “youtube embed autoplay” and found that you add autoplay=1 to the url.

    So the full url in the href should look like:

    https://www.youtube.com/v/Qt5fvDGnVbs&ap=%2526fmt%3D22&autoplay=1

    Google is your friend.

    Thread Starter justmichael

    (@justmichael)

    Hey thanks Matt, much appreciated. The link takes it (from 240p) to 480p but you then have to change it to 720p manually, which the average viewer (at least, on our web site) will have no idea about. Anyhow, I’ll Google it from here… thanks again…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shadowbox Video Size’ is closed to new replies.