WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox JS
[resolved] Full Screen for YouTube (8 posts)

  1. laveciar
    Member
    Posted 3 years ago #

    I have been using the Shadowbox plugin for quite some time. I have been patiently waiting for them to implement the option to turn on full screen for YouTube Videos. I've been away for a little while now and just came back to see that in Version 3.0.0.0 the Full Screen in YouTube is now supported. I've looked everywhere I can, about how to get this to work, as a lot of my customers are really adamant about having things full screen, and haven't been able to find any reference to how this can be resolved. Can anyone give me a little insight as to how or what I should use in order to enable or turn on the full screen option for YouTube Videos?

    Here is an example of the code I am using. Basically it's a small pic associated with the video and when clicked it opens up the video in the shadowbox.

    <a title="Part 1" rel="shadowbox;width=640;height=385" href="http://www.youtube.com/v/FkbqYHZxzn0"><img src="http://img.youtube.com/vi/FkbqYHZxzn0/1.jpg" alt="Part 1" width="75" height="75" />

    Forever in your debt if you can help me solve this issue.

    Cheers

  2. laveciar
    Member
    Posted 3 years ago #

    no takers?

  3. Matt Martz
    Member
    Plugin Author

    Posted 3 years ago #

    You need to add the proper query string to the youtube URL to tell it to include the fullscreen button. Something similar to this:

    <a title="Part 1" rel="shadowbox;width=640;height=385" href="http://www.youtube.com/v/FkbqYHZxzn0?fs=1"><img src="http://img.youtube.com/vi/FkbqYHZxzn0/1.jpg" alt="Part 1" width="75" height="75" />

    Notice the addition of fs=1 to the end of the url.

  4. Dave333
    Member
    Posted 3 years ago #

    Thanks Matt. That added the full screen button.....however, pressing the full screen button does nothing. It's there but it doesn't go to full screen when clicked on.

    What am I doing wrong?

  5. nutesla
    Member
    Posted 3 years ago #

    hi, i have the same problem ;-)
    tried to find something over the internet but no success
    i can apply the button but it doesn't go...
    if you go to mediafire.com they let you see a tour video in a similar shadowbox-thickbox window...and the video is able to go fullscreen...
    how to do it with shadowbox for wordpress?
    thank you

  6. Matt Martz
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry, seems I forgot that you need to force the player as SWF:

    <a title="Part 1" rel="shadowbox;width=640;height=385;player=swf;" href="http://www.youtube.com/v/FkbqYHZxzn0?fs=1"><img src="http://img.youtube.com/vi/FkbqYHZxzn0/1.jpg" alt="Part 1" width="75" height="75" />

    That should take care of the issue.

  7. Dave333
    Member
    Posted 3 years ago #

    Thanks Matt!

    It's working perfectly now.

  8. nutesla
    Member
    Posted 3 years ago #

    haha someone told it was impossible... impossible is nothing! you're the man :-) thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic