1

I have an application that plays audio. I need to add an event that checks if the application is minimized and stop the audio if it is so. All of the responses I found were given for Cordova, where the following Eventlistener works just fine:

document.addEventListener("pause", onMinimizedApplication());

My question is: Is there a way to determine whether an application is minimized at the moment ?

user253956
  • 313
  • 6
  • 14
  • 2
    In what and where are you trying to accomplish this? – Rohit Vipin Mathews Aug 11 '15 at 11:17
  • http://stackoverflow.com/questions/10328665/how-to-detect-browser-minimize-and-maximize-state-in-javascript http://stackoverflow.com/questions/1060008/is-there-a-way-to-detect-if-a-browser-window-is-not-currently-active – calinaadi Aug 11 '15 at 11:37
  • @JonB, I am asking about an application, not a browser. – user253956 Aug 11 '15 at 12:36
  • If the application supports javascript then it should soon support Visibility API as in the answer of the duplicate answer. Otherwise specify the javascript engine in your application. – OIS Aug 11 '15 at 18:04

0 Answers0