tips:cordova:inappbrowser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:cordova:inappbrowser [2015/02/26 08:14] – [backbutton] scipiotips:cordova:inappbrowser [2015/03/27 17:40] (current) – [autoplay] scipio
Line 14: Line 14:
 </code> </code>
  
-to (note public method)+to (public method)
 <code java> <code java>
 public void goBack() { public void goBack() {
Line 68: Line 68:
   inAppWebView.getSettings().setUseWideViewPort(true);   inAppWebView.getSettings().setUseWideViewPort(true);
 + inAppWebView.getSettings().setMediaPlaybackRequiresUserGesture(false); + inAppWebView.getSettings().setMediaPlaybackRequiresUserGesture(false);
 +</code>
 +
 +===== loop =====
 +
 +Looping mode does not work, add this hack to javascript and add looping="loop" attribute to video tag
 +<code javascript>
 +    var videos = jQNew( "video[looping='loop']" );
 +    for (index = 0; index < videos.length; ++index) {
 +       videos[index].addEventListener('ended', function (e) {window.location.reload();},false);
 +    }
 </code> </code>
  • tips/cordova/inappbrowser.1424934887.txt.gz
  • Last modified: 2015/02/26 08:14
  • by scipio