videojs disable full screen on double click



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I want to completely disable full screen functionality.
I removed fullscreen button like this.



videojs('videoPlayer', 
controlBar:
fullscreenToggle: false

);


But on double click it still goes to full screen.
How to disable double click?










share|improve this question






























    0















    I want to completely disable full screen functionality.
    I removed fullscreen button like this.



    videojs('videoPlayer', 
    controlBar:
    fullscreenToggle: false

    );


    But on double click it still goes to full screen.
    How to disable double click?










    share|improve this question


























      0












      0








      0








      I want to completely disable full screen functionality.
      I removed fullscreen button like this.



      videojs('videoPlayer', 
      controlBar:
      fullscreenToggle: false

      );


      But on double click it still goes to full screen.
      How to disable double click?










      share|improve this question
















      I want to completely disable full screen functionality.
      I removed fullscreen button like this.



      videojs('videoPlayer', 
      controlBar:
      fullscreenToggle: false

      );


      But on double click it still goes to full screen.
      How to disable double click?







      fullscreen video.js






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 '18 at 14:06







      Hovhannes Bantikyan

















      asked Nov 15 '18 at 7:49









      Hovhannes BantikyanHovhannes Bantikyan

      115




      115






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Darius Oleskevicius helped me with the answer on videojs github page: https://github.com/videojs/video.js/issues/5604



          The current dblclick handler doesn't take into consideration whether fullscreen toggle is disabled. It is on by default and there is currently no settable option to disable it. As of now, you could try and cancel out dblclick listener on tech (see below).



          player.ready(function() 
          player.tech_.off('dblclick');
          );


          Also if you use reset function, you have to again remove dblclick event listener.






          share|improve this answer






























            0














            You can use CSS to initialize the various control-bar objects
            to exist or not.



            See, for example: https://github.com/videojs/video.js/issues/2507



            So, for your case, just use:






            <style>
            .video-js .vjs-fullscreen-control display: none;
            </style>





            EDIT:



            Ok, I figured out what's up with the "double-click" !



            I still run all my video pages, using version 5 of videojs.

            Version 5.11.9, to be exact.



            And, it turns out that double-clicking on a video back then, did NOTHING.



            So, bottom line, if you truly 'want to disable 'double-click-to-fullscreen',
            it can be done. Just use 5.x, rather than 6.x or 7.x



            Having said all that, I now have to consider this a bug in 7.x (and 6.x).

            The code inside videojs SHOULD be testing whether the fullscreen-control
            exists or not, and if not, the double-click should NOT be going to fullscreen.



            The list of versions is here: https://github.com/videojs/video.js/releases






            share|improve this answer

























            • Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

              – Hovhannes Bantikyan
              Nov 16 '18 at 6:37












            • Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

              – Dave
              Nov 16 '18 at 14:28











            • Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

              – Dave
              Nov 17 '18 at 13:54











            • Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

              – Hovhannes Bantikyan
              Nov 18 '18 at 7:50











            • Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

              – Dave
              Nov 20 '18 at 5:46











            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314628%2fvideojs-disable-full-screen-on-double-click%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Darius Oleskevicius helped me with the answer on videojs github page: https://github.com/videojs/video.js/issues/5604



            The current dblclick handler doesn't take into consideration whether fullscreen toggle is disabled. It is on by default and there is currently no settable option to disable it. As of now, you could try and cancel out dblclick listener on tech (see below).



            player.ready(function() 
            player.tech_.off('dblclick');
            );


            Also if you use reset function, you have to again remove dblclick event listener.






            share|improve this answer



























              1














              Darius Oleskevicius helped me with the answer on videojs github page: https://github.com/videojs/video.js/issues/5604



              The current dblclick handler doesn't take into consideration whether fullscreen toggle is disabled. It is on by default and there is currently no settable option to disable it. As of now, you could try and cancel out dblclick listener on tech (see below).



              player.ready(function() 
              player.tech_.off('dblclick');
              );


              Also if you use reset function, you have to again remove dblclick event listener.






              share|improve this answer

























                1












                1








                1







                Darius Oleskevicius helped me with the answer on videojs github page: https://github.com/videojs/video.js/issues/5604



                The current dblclick handler doesn't take into consideration whether fullscreen toggle is disabled. It is on by default and there is currently no settable option to disable it. As of now, you could try and cancel out dblclick listener on tech (see below).



                player.ready(function() 
                player.tech_.off('dblclick');
                );


                Also if you use reset function, you have to again remove dblclick event listener.






                share|improve this answer













                Darius Oleskevicius helped me with the answer on videojs github page: https://github.com/videojs/video.js/issues/5604



                The current dblclick handler doesn't take into consideration whether fullscreen toggle is disabled. It is on by default and there is currently no settable option to disable it. As of now, you could try and cancel out dblclick listener on tech (see below).



                player.ready(function() 
                player.tech_.off('dblclick');
                );


                Also if you use reset function, you have to again remove dblclick event listener.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 '18 at 12:09









                Hovhannes BantikyanHovhannes Bantikyan

                115




                115























                    0














                    You can use CSS to initialize the various control-bar objects
                    to exist or not.



                    See, for example: https://github.com/videojs/video.js/issues/2507



                    So, for your case, just use:






                    <style>
                    .video-js .vjs-fullscreen-control display: none;
                    </style>





                    EDIT:



                    Ok, I figured out what's up with the "double-click" !



                    I still run all my video pages, using version 5 of videojs.

                    Version 5.11.9, to be exact.



                    And, it turns out that double-clicking on a video back then, did NOTHING.



                    So, bottom line, if you truly 'want to disable 'double-click-to-fullscreen',
                    it can be done. Just use 5.x, rather than 6.x or 7.x



                    Having said all that, I now have to consider this a bug in 7.x (and 6.x).

                    The code inside videojs SHOULD be testing whether the fullscreen-control
                    exists or not, and if not, the double-click should NOT be going to fullscreen.



                    The list of versions is here: https://github.com/videojs/video.js/releases






                    share|improve this answer

























                    • Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

                      – Hovhannes Bantikyan
                      Nov 16 '18 at 6:37












                    • Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

                      – Dave
                      Nov 16 '18 at 14:28











                    • Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

                      – Dave
                      Nov 17 '18 at 13:54











                    • Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

                      – Hovhannes Bantikyan
                      Nov 18 '18 at 7:50











                    • Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

                      – Dave
                      Nov 20 '18 at 5:46















                    0














                    You can use CSS to initialize the various control-bar objects
                    to exist or not.



                    See, for example: https://github.com/videojs/video.js/issues/2507



                    So, for your case, just use:






                    <style>
                    .video-js .vjs-fullscreen-control display: none;
                    </style>





                    EDIT:



                    Ok, I figured out what's up with the "double-click" !



                    I still run all my video pages, using version 5 of videojs.

                    Version 5.11.9, to be exact.



                    And, it turns out that double-clicking on a video back then, did NOTHING.



                    So, bottom line, if you truly 'want to disable 'double-click-to-fullscreen',
                    it can be done. Just use 5.x, rather than 6.x or 7.x



                    Having said all that, I now have to consider this a bug in 7.x (and 6.x).

                    The code inside videojs SHOULD be testing whether the fullscreen-control
                    exists or not, and if not, the double-click should NOT be going to fullscreen.



                    The list of versions is here: https://github.com/videojs/video.js/releases






                    share|improve this answer

























                    • Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

                      – Hovhannes Bantikyan
                      Nov 16 '18 at 6:37












                    • Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

                      – Dave
                      Nov 16 '18 at 14:28











                    • Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

                      – Dave
                      Nov 17 '18 at 13:54











                    • Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

                      – Hovhannes Bantikyan
                      Nov 18 '18 at 7:50











                    • Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

                      – Dave
                      Nov 20 '18 at 5:46













                    0












                    0








                    0







                    You can use CSS to initialize the various control-bar objects
                    to exist or not.



                    See, for example: https://github.com/videojs/video.js/issues/2507



                    So, for your case, just use:






                    <style>
                    .video-js .vjs-fullscreen-control display: none;
                    </style>





                    EDIT:



                    Ok, I figured out what's up with the "double-click" !



                    I still run all my video pages, using version 5 of videojs.

                    Version 5.11.9, to be exact.



                    And, it turns out that double-clicking on a video back then, did NOTHING.



                    So, bottom line, if you truly 'want to disable 'double-click-to-fullscreen',
                    it can be done. Just use 5.x, rather than 6.x or 7.x



                    Having said all that, I now have to consider this a bug in 7.x (and 6.x).

                    The code inside videojs SHOULD be testing whether the fullscreen-control
                    exists or not, and if not, the double-click should NOT be going to fullscreen.



                    The list of versions is here: https://github.com/videojs/video.js/releases






                    share|improve this answer















                    You can use CSS to initialize the various control-bar objects
                    to exist or not.



                    See, for example: https://github.com/videojs/video.js/issues/2507



                    So, for your case, just use:






                    <style>
                    .video-js .vjs-fullscreen-control display: none;
                    </style>





                    EDIT:



                    Ok, I figured out what's up with the "double-click" !



                    I still run all my video pages, using version 5 of videojs.

                    Version 5.11.9, to be exact.



                    And, it turns out that double-clicking on a video back then, did NOTHING.



                    So, bottom line, if you truly 'want to disable 'double-click-to-fullscreen',
                    it can be done. Just use 5.x, rather than 6.x or 7.x



                    Having said all that, I now have to consider this a bug in 7.x (and 6.x).

                    The code inside videojs SHOULD be testing whether the fullscreen-control
                    exists or not, and if not, the double-click should NOT be going to fullscreen.



                    The list of versions is here: https://github.com/videojs/video.js/releases






                    <style>
                    .video-js .vjs-fullscreen-control display: none;
                    </style>





                    <style>
                    .video-js .vjs-fullscreen-control display: none;
                    </style>






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 17 '18 at 14:13

























                    answered Nov 16 '18 at 6:30









                    DaveDave

                    1,19921318




                    1,19921318












                    • Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

                      – Hovhannes Bantikyan
                      Nov 16 '18 at 6:37












                    • Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

                      – Dave
                      Nov 16 '18 at 14:28











                    • Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

                      – Dave
                      Nov 17 '18 at 13:54











                    • Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

                      – Hovhannes Bantikyan
                      Nov 18 '18 at 7:50











                    • Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

                      – Dave
                      Nov 20 '18 at 5:46

















                    • Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

                      – Hovhannes Bantikyan
                      Nov 16 '18 at 6:37












                    • Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

                      – Dave
                      Nov 16 '18 at 14:28











                    • Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

                      – Dave
                      Nov 17 '18 at 13:54











                    • Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

                      – Hovhannes Bantikyan
                      Nov 18 '18 at 7:50











                    • Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

                      – Dave
                      Nov 20 '18 at 5:46
















                    Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

                    – Hovhannes Bantikyan
                    Nov 16 '18 at 6:37






                    Hi @Dave . If you read question I was able to hide button from control-bar. I just want to disable full-screen on double click.

                    – Hovhannes Bantikyan
                    Nov 16 '18 at 6:37














                    Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

                    – Dave
                    Nov 16 '18 at 14:28





                    Yes, I tried to incorporate the dbl-click, but I couldn't duplicate that part. What are you dbl-clicking on? (I assumed you meant 'anywhere on the player-screen, but that does nothing on mine.)

                    – Dave
                    Nov 16 '18 at 14:28













                    Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

                    – Dave
                    Nov 17 '18 at 13:54





                    Ok, I figured out what's happening. Just use version 5.11.9 of videojs, and double-click will be 'disabled'!

                    – Dave
                    Nov 17 '18 at 13:54













                    Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

                    – Hovhannes Bantikyan
                    Nov 18 '18 at 7:50





                    Hello @Dave. You suggest to use older version. But I want to us newest one. I agree that this is a bug. But we have to find solution for new version. Thanks.

                    – Hovhannes Bantikyan
                    Nov 18 '18 at 7:50













                    Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

                    – Dave
                    Nov 20 '18 at 5:46





                    Wise old software guru say: "The oldest version of a product will have the fewest bugs." He also say: "The only reason to want/need a newer version is when there is some new feature in more recent version that is needed"

                    – Dave
                    Nov 20 '18 at 5:46

















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314628%2fvideojs-disable-full-screen-on-double-click%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Darth Vader #20

                    How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                    Ondo