Full screen with Youtube - is it possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mark.hs
    Senior Member
    • Dec 2016
    • 197
    • 5.7.0

    Full screen with Youtube - is it possible?

    The full screen button is disabled on all embedded YouTube videos. Does anyone know how or if this can be fixed?


    Mark
    Admin for hobbysquawk.com
    VB 5.74
    PHP 8.2
    Maria DB 10.6
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    Edit the template bbcode_video

    Find:
    Code:
    <vb:elseif condition="$provider == 'youtube'" />
    <iframe class="restrain" title="YouTube video player" width="<vb:if condition="isset($width) AND $width > 0">{vb:raw width}<vb:else />640</vb:if>" height="<vb:if condition="$height">{vb:raw height}<vb:else />390</vb:if>" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw vboptions.player_wmode}&autoplay=1"></iframe>
    <vb:elseif condition="$provider == 'youtube_share'" />
    <iframe class="restrain" title="YouTube video player" width="<vb:if condition="isset($width) AND $width > 0">{vb:raw width}<vb:else />640</vb:if>" height="<vb:if condition="$height">{vb:raw height}<vb:else />390</vb:if>" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw vboptions.player_wmode}&autoplay=1"></iframe>
    Add the red code (two instances):
    Code:
    <vb:elseif condition="$provider == 'youtube'" />
    <iframe class="restrain" title="YouTube video player" width="<vb:if condition="isset($width) AND $width > 0">{vb:raw width}<vb:else />640</vb:if>" height="<vb:if condition="$height">{vb:raw height}<vb:else />390</vb:if>" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw vboptions.player_wmode}&autoplay=1" [COLOR=#FF0000]allowFullScreen[/COLOR]></iframe>
    <vb:elseif condition="$provider == 'youtube_share'" />
    <iframe class="restrain" title="YouTube video player" width="<vb:if condition="isset($width) AND $width > 0">{vb:raw width}<vb:else />640</vb:if>" height="<vb:if condition="$height">{vb:raw height}<vb:else />390</vb:if>" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw vboptions.player_wmode}&autoplay=1" [COLOR=#FF0000]allowFullScreen[/COLOR]></iframe>
    Then run AdminCP > Maintenance > Clear System Cache.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24287
      • 6.0.X

      #3
      You *may* find to get this to work you might have to put your site into debug mode (instructions HERE), then go to the admincp and refresh it. Run AdminCP > Rebuild > Rebuild Video BB Codes. Then take your site out of debug mode again.
      MARK.B
      vBulletin Support
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74122

        #4
        There is a JIRA to have this fixed here: http://tracker.vbulletin.com/browse/VBV-17003
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • mark.hs
          Senior Member
          • Dec 2016
          • 197
          • 5.7.0

          #5
          Mark, the fixed worked and I didnt have to put the site in debug mode.
          I do have one followup question about embedding YouTube videos:
          1. when we use the editor (underlined A) and use the insert video feature everything look good and proper. Here is an example: https://www.hobbysquawk.com/forum/mo...3696#post63696

          2. when we use the Post Link (chain link icon above) and add the link of a YouTube video, the video thumbnail is fine, BUT when you click on the video it plays in a really small, almost square window. Here is an example: https://www.hobbysquawk.com/forum/mo...3761#post63761

          Do you know how we can fix #2?
          Admin for hobbysquawk.com
          VB 5.74
          PHP 8.2
          Maria DB 10.6

          Comment

          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24287
            • 6.0.X

            #6
            I think the second issue (which relates to link content types) is a known bug. I'll see if I can find the JIRA for it.
            MARK.B
            vBulletin Support
            ------------
            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

            Comment

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24287
              • 6.0.X

              #7
              Here it is....fixed in 5.2.7, hopefully:

              VBV-16725
              MARK.B
              vBulletin Support
              ------------
              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

              Comment

              • mark.hs
                Senior Member
                • Dec 2016
                • 197
                • 5.7.0

                #8
                ok, for some reason I thought it was fixed in 5.2.6. We will wait patiently.
                Admin for hobbysquawk.com
                VB 5.74
                PHP 8.2
                Maria DB 10.6

                Comment

                • glennrocksvb
                  Former vBulletin Developer
                  • Mar 2011
                  • 4021
                  • 5.7.X

                  #9
                  This issue could be simply fixed by adding this in css_additional template.

                  Code:
                  .videocontainer {
                      float: none;
                  }

                  Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                  Comment

                  • storrm
                    New Member
                    • Mar 2013
                    • 7
                    • 3.8.x

                    #10
                    deleted. posted in wrong group. sorry!
                    Last edited by storrm; Sun 25 Jun '17, 2:55am.

                    Comment

                    Related Topics

                    Collapse

                    Working...