Playing embedded youtube links full screen

Discussion in 'LastOS News' started by bphlpt, Dec 18, 2020.

  1. bphlpt

    bphlpt A lowly staff member Staff Member

    Hey Freezer, are you aware of what setting we have to change to allow embedded youtube links to play full screen? For example, in my post http://www.lastos.org/forum/index.php?threads/last7-collection.1695/page-6#post-21537, if you play any of the youtuble links, there will be an option to play the video in full screen in the lower right corner. but if you click that, you are told that "Full screen is unavailable". If you then click "Learn More" you are told that:

    If full screen mode isn't working
    If you’re watching videos on websites other than YouTube, the option to use full screen mode may be turned off.

    So, how do we turn that option on? That option seems to be on on most sites I visit. I looked around the ACP and could find anything.

    Searching online I found this https://xenforo.com/community/threads/youtube-video-full-screen-mode-dont-work.71729/ -

    What is your embed code?

    The default code is:
    Code:
    <iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>

    Note the word allowfullscreen. But I don't know where that embed code goes. :(

    EDIT: I figured out where to put it, here - http://www.lastos.org/forum/admin.php?bb-code-media-sites/youtube/edit, under Embed HTML.

    I have changed it. If no one notices any problem, we'll leave it changed. If there is a problem we can change it back easy enough.

    By the way, it seems to work! Please let me know if anyone has any problems with the new setting.
     
  2. Ghost

    Ghost Forum Crapolator

    Can you post a example link for quick test here Please ? :cool:
     
  3. bphlpt

    bphlpt A lowly staff member Staff Member

    Not sure what you mean. Ghost. If you go to this post - http://www.lastos.org/forum/index.php?threads/last7-collection.1695/page-6#post-21537, there will be 4 youtube links, one of which is this one:



    But the behavior will be the same for any youtube link anywhere on the forum, including in the shoutbox.

    When you click the red triangle "play" link, it will start to play in a 500 x 300 window, or iframe, the same size as the preview screenshot. You will see an option to play the video in full screen in the lower right corner. but if you click that, with the old code you were told that "Full screen is unavailable", but of course the video continued to play in the 500 x 300 window. Now, with the new code, when you click the option to play the video in full screen, that window expands to full screen. This is a forum-wide setting. But you will only notice a change in behavior if you try to expand the video to full screen. With the old code, to achieve the same effect, you had to first open the video in youtube, which would open the video in a new browser tab or window, and then you could expand it from there. If anyone prefers the old behavior it's extremely easy to change the setting back to the way it was, though it was using outdated code according to the site I referenced above.

    Does that answer your question?
     
  4. The Freezer

    The Freezer Just this guy, you know Staff Member

    @BP,

    Do you suppose it was a PHP 7.2 vs. 5.6 issue? Regardless, thanks for fixing it!

    EDIT: No, perhaps it happened after one of the many XF upgrades over the years and it never got updated.
     
  5. bphlpt

    bphlpt A lowly staff member Staff Member

    This, I think.
     
    The Freezer likes this.

Share This Page