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

                      1928 у кіно

                      Захаров Федір Захарович

                      Ель Греко