allow <video> elements to autoplay

This commit is contained in:
Andrew Dolgov 2015-07-06 21:29:25 +03:00
parent ae3b87ff91
commit d7677ec893
2 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="354"
android:versionName="1.127" >
android:versionCode="355"
android:versionName="1.128" >
<uses-sdk
android:minSdkVersion="15"

View File

@ -458,6 +458,12 @@ public class ArticleFragment extends Fragment {
m_chromeClient = new FSVideoChromeClient(getView());
m_web.setWebChromeClient(m_chromeClient);
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
ws.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
}
ws.setMediaPlaybackRequiresUserGesture(false);
}
if (m_prefs.getBoolean("justify_article_text", true)) {