Vimeo, Detect full screen click The Next CEO of Stack OverflowGet element from within an iFrameDetecting an undefined object propertyHow to detect if JavaScript is disabled?How do I detect a click outside an element?Detecting an “invalid date” Date instance in JavaScriptGet the size of the screen, current web page and browser windowWhat is the best way to detect a mobile device in jQuery?Check if a user has scrolled to the bottomDetect HTTP or HTTPS then force HTTPS in JavaScriptJavaScript set object key by variableDetect iPad Mini in HTML5

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Unclear about dynamic binding

How to write a definition with variants?

Why does standard notation not preserve intervals (visually)

Is it professional to write unrelated content in an almost-empty email?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Why the difference in type-inference over the as-pattern in two similar function definitions?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Calculator final project in Python

Is a distribution that is normal, but highly skewed considered Gaussian?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

When you upcast Blindness/Deafness, do all targets suffer the same effect?

Why do remote US companies require working in the US?

Is French Guiana a (hard) EU border?

Domestic-to-international connection at Orlando (MCO)

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Are police here, aren't itthey?

Grabbing quick drinks

TikZ: How to reverse arrow direction without switching start/end point?

Easy to read palindrome checker

How to prove a simple equation?

Prepend last line of stdin to entire stdin

Running a General Election and the European Elections together

Yu-Gi-Oh cards in Python 3



Vimeo, Detect full screen click



The Next CEO of Stack OverflowGet element from within an iFrameDetecting an undefined object propertyHow to detect if JavaScript is disabled?How do I detect a click outside an element?Detecting an “invalid date” Date instance in JavaScriptGet the size of the screen, current web page and browser windowWhat is the best way to detect a mobile device in jQuery?Check if a user has scrolled to the bottomDetect HTTP or HTTPS then force HTTPS in JavaScriptJavaScript set object key by variableDetect iPad Mini in HTML5










4















Is there a way to detect when a user push the full screen button? Can't find any info about it on their API site...



http://developer.vimeo.com/player/js-api










share|improve this question
























  • can I use jquery?

    – Amit Joki
    Mar 21 '14 at 12:16











  • @AmitJoki Absolutely!

    – Philip
    Mar 21 '14 at 12:43















4















Is there a way to detect when a user push the full screen button? Can't find any info about it on their API site...



http://developer.vimeo.com/player/js-api










share|improve this question
























  • can I use jquery?

    – Amit Joki
    Mar 21 '14 at 12:16











  • @AmitJoki Absolutely!

    – Philip
    Mar 21 '14 at 12:43













4












4








4


1






Is there a way to detect when a user push the full screen button? Can't find any info about it on their API site...



http://developer.vimeo.com/player/js-api










share|improve this question
















Is there a way to detect when a user push the full screen button? Can't find any info about it on their API site...



http://developer.vimeo.com/player/js-api







javascript click vimeo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 '14 at 20:05









Tshepang

6,1781772114




6,1781772114










asked Mar 21 '14 at 12:10









PhilipPhilip

3,15796191




3,15796191












  • can I use jquery?

    – Amit Joki
    Mar 21 '14 at 12:16











  • @AmitJoki Absolutely!

    – Philip
    Mar 21 '14 at 12:43

















  • can I use jquery?

    – Amit Joki
    Mar 21 '14 at 12:16











  • @AmitJoki Absolutely!

    – Philip
    Mar 21 '14 at 12:43
















can I use jquery?

– Amit Joki
Mar 21 '14 at 12:16





can I use jquery?

– Amit Joki
Mar 21 '14 at 12:16













@AmitJoki Absolutely!

– Philip
Mar 21 '14 at 12:43





@AmitJoki Absolutely!

– Philip
Mar 21 '14 at 12:43












3 Answers
3






active

oldest

votes


















1














I try a lot of time to detect click on fullscreen button on vimeo player, with no success.
But i find other solution that work for me:



$(window).resize(checkResize);

function checkResize()
document.mozFullScreenElement





share|improve this answer






























    0














    This is how I accomplished detecting if embedded (iframe) Vimeo videos were fullscreen or not (requires jQuery):



    $(function()
    var checkVimeoFullscreen = setInterval(function()
    var winWidth = $(window).width(); // Get the full window width
    var vimeoWidth = $('iframe[src*="vimeo"]').width(); // Get the width of the Vimeo iframe
    if (winWidth == vimeoWidth) // if the Vimeo iframe and the window width match, you're in fullscreen
    console.log("Vimeo is in fullscreen mode.");
    else
    console.log("Vimeo is not in fullscreen mode.");

    ,500); // You can change the interval if you want, but this worked for me
    );





    share|improve this answer






























      -1














      You can do it like this:



      $('button.fullscreen[data-title-fullscreen][data-title-unfullscreen]').click(function()
      //DO something here
      );





      share|improve this answer


















      • 3





        Problem is that it's inside an iframe that's from another domain...

        – Philip
        Mar 27 '14 at 12:18











      • do you have access to it?

        – Amit Joki
        Mar 27 '14 at 12:19











      • The iframe is the vimeo movie. Embedded

        – Philip
        Mar 27 '14 at 12:20











      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%2f22558404%2fvimeo-detect-full-screen-click%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      I try a lot of time to detect click on fullscreen button on vimeo player, with no success.
      But i find other solution that work for me:



      $(window).resize(checkResize);

      function checkResize()
      document.mozFullScreenElement





      share|improve this answer



























        1














        I try a lot of time to detect click on fullscreen button on vimeo player, with no success.
        But i find other solution that work for me:



        $(window).resize(checkResize);

        function checkResize()
        document.mozFullScreenElement





        share|improve this answer

























          1












          1








          1







          I try a lot of time to detect click on fullscreen button on vimeo player, with no success.
          But i find other solution that work for me:



          $(window).resize(checkResize);

          function checkResize()
          document.mozFullScreenElement





          share|improve this answer













          I try a lot of time to detect click on fullscreen button on vimeo player, with no success.
          But i find other solution that work for me:



          $(window).resize(checkResize);

          function checkResize()
          document.mozFullScreenElement






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 14 '15 at 8:12









          Massimo DannoMassimo Danno

          111




          111























              0














              This is how I accomplished detecting if embedded (iframe) Vimeo videos were fullscreen or not (requires jQuery):



              $(function()
              var checkVimeoFullscreen = setInterval(function()
              var winWidth = $(window).width(); // Get the full window width
              var vimeoWidth = $('iframe[src*="vimeo"]').width(); // Get the width of the Vimeo iframe
              if (winWidth == vimeoWidth) // if the Vimeo iframe and the window width match, you're in fullscreen
              console.log("Vimeo is in fullscreen mode.");
              else
              console.log("Vimeo is not in fullscreen mode.");

              ,500); // You can change the interval if you want, but this worked for me
              );





              share|improve this answer



























                0














                This is how I accomplished detecting if embedded (iframe) Vimeo videos were fullscreen or not (requires jQuery):



                $(function()
                var checkVimeoFullscreen = setInterval(function()
                var winWidth = $(window).width(); // Get the full window width
                var vimeoWidth = $('iframe[src*="vimeo"]').width(); // Get the width of the Vimeo iframe
                if (winWidth == vimeoWidth) // if the Vimeo iframe and the window width match, you're in fullscreen
                console.log("Vimeo is in fullscreen mode.");
                else
                console.log("Vimeo is not in fullscreen mode.");

                ,500); // You can change the interval if you want, but this worked for me
                );





                share|improve this answer

























                  0












                  0








                  0







                  This is how I accomplished detecting if embedded (iframe) Vimeo videos were fullscreen or not (requires jQuery):



                  $(function()
                  var checkVimeoFullscreen = setInterval(function()
                  var winWidth = $(window).width(); // Get the full window width
                  var vimeoWidth = $('iframe[src*="vimeo"]').width(); // Get the width of the Vimeo iframe
                  if (winWidth == vimeoWidth) // if the Vimeo iframe and the window width match, you're in fullscreen
                  console.log("Vimeo is in fullscreen mode.");
                  else
                  console.log("Vimeo is not in fullscreen mode.");

                  ,500); // You can change the interval if you want, but this worked for me
                  );





                  share|improve this answer













                  This is how I accomplished detecting if embedded (iframe) Vimeo videos were fullscreen or not (requires jQuery):



                  $(function()
                  var checkVimeoFullscreen = setInterval(function()
                  var winWidth = $(window).width(); // Get the full window width
                  var vimeoWidth = $('iframe[src*="vimeo"]').width(); // Get the width of the Vimeo iframe
                  if (winWidth == vimeoWidth) // if the Vimeo iframe and the window width match, you're in fullscreen
                  console.log("Vimeo is in fullscreen mode.");
                  else
                  console.log("Vimeo is not in fullscreen mode.");

                  ,500); // You can change the interval if you want, but this worked for me
                  );






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 7 at 17:00









                  Loko Web DesignLoko Web Design

                  421410




                  421410





















                      -1














                      You can do it like this:



                      $('button.fullscreen[data-title-fullscreen][data-title-unfullscreen]').click(function()
                      //DO something here
                      );





                      share|improve this answer


















                      • 3





                        Problem is that it's inside an iframe that's from another domain...

                        – Philip
                        Mar 27 '14 at 12:18











                      • do you have access to it?

                        – Amit Joki
                        Mar 27 '14 at 12:19











                      • The iframe is the vimeo movie. Embedded

                        – Philip
                        Mar 27 '14 at 12:20















                      -1














                      You can do it like this:



                      $('button.fullscreen[data-title-fullscreen][data-title-unfullscreen]').click(function()
                      //DO something here
                      );





                      share|improve this answer


















                      • 3





                        Problem is that it's inside an iframe that's from another domain...

                        – Philip
                        Mar 27 '14 at 12:18











                      • do you have access to it?

                        – Amit Joki
                        Mar 27 '14 at 12:19











                      • The iframe is the vimeo movie. Embedded

                        – Philip
                        Mar 27 '14 at 12:20













                      -1












                      -1








                      -1







                      You can do it like this:



                      $('button.fullscreen[data-title-fullscreen][data-title-unfullscreen]').click(function()
                      //DO something here
                      );





                      share|improve this answer













                      You can do it like this:



                      $('button.fullscreen[data-title-fullscreen][data-title-unfullscreen]').click(function()
                      //DO something here
                      );






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Mar 21 '14 at 16:56









                      Amit JokiAmit Joki

                      47.5k75181




                      47.5k75181







                      • 3





                        Problem is that it's inside an iframe that's from another domain...

                        – Philip
                        Mar 27 '14 at 12:18











                      • do you have access to it?

                        – Amit Joki
                        Mar 27 '14 at 12:19











                      • The iframe is the vimeo movie. Embedded

                        – Philip
                        Mar 27 '14 at 12:20












                      • 3





                        Problem is that it's inside an iframe that's from another domain...

                        – Philip
                        Mar 27 '14 at 12:18











                      • do you have access to it?

                        – Amit Joki
                        Mar 27 '14 at 12:19











                      • The iframe is the vimeo movie. Embedded

                        – Philip
                        Mar 27 '14 at 12:20







                      3




                      3





                      Problem is that it's inside an iframe that's from another domain...

                      – Philip
                      Mar 27 '14 at 12:18





                      Problem is that it's inside an iframe that's from another domain...

                      – Philip
                      Mar 27 '14 at 12:18













                      do you have access to it?

                      – Amit Joki
                      Mar 27 '14 at 12:19





                      do you have access to it?

                      – Amit Joki
                      Mar 27 '14 at 12:19













                      The iframe is the vimeo movie. Embedded

                      – Philip
                      Mar 27 '14 at 12:20





                      The iframe is the vimeo movie. Embedded

                      – Philip
                      Mar 27 '14 at 12:20

















                      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%2f22558404%2fvimeo-detect-full-screen-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

                      Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

                      Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

                      Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved