I have this HTML.
<html><body> <a href="http://mydomain.com/video.mp4">PLAY ME!!!!!</a> </body></html>
, , @ndtreviv linked , " ". Android. , , , WebView . , Android JavaScript.
webapps , , "", . : http://www.w3.org/TR/2013/REC-page-visibility-20131029/#sec-visibilitychange-event
, , . :
window.document.addEventListener("visibilitychange", function(e) { window.console.log('VISIBILITY CHANGE', window.document.visibilityState); });
Android Chrome visibilitychange ; : http://output.jsbin.com/rinece
:
AOSP ( WebView Android < 4.4) , Chrome...
The visibilityChange event is now well supported on the mobile device - see http://caniuse.com/#search=visibility , but be careful that it is not supported by iOS UIWebView (even if it is enabled by iOS9).
Source: https://habr.com/ru/post/1773571/More articles:How do I know if a method is static using the Java reflection API? - javaHTML5 contextmenu attribute question? - html5C ++ - Why should we use explicit in this constructor? - c ++Aggregations Arel, Earl, External Join now? - ruby | fooobar.comstarting question about XSLT - xsltКросс-браузер CSS для радиального градиента и поворота + радиус - csshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1773573/how-to-convert-two-strings-to-integers-so-math-is-correct&usg=ALkJrhj2QUTWqxkXb-b8SVjk81cVpwFmRQCannot debug wcf-windows service - c #How to set up the assembly and publishing process - design-patternsShould I go through WCF code if the service is running on a remote machine? - wcfAll Articles