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
tips:cordova:inappbrowser [2015/03/27 15:05] scipiotips:cordova:inappbrowser [2015/03/27 17:40] (current) – [autoplay] scipio
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.1427465157.txt.gz
  • Last modified: 2015/03/27 15:05
  • by scipio