hello,
I'm trying to set:
setMediaPlaybackRequiresUserGesture(false),
it's needed to autoplay video on android.
I have installed latest crosswalk build (17+, via
cordova-plugin-crosswalk-webview).
I am trying something like this, and get error for the getSettings method:
public class MainActivity extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.init();
XWalkView wv = (XWalkView) appView.getEngine().getView();
XWalkSettings ws = (XWalkSettings)wv.getSettings();
ws.setMediaPlaybackRequiresUserGesture(false);
loadUrl(launchUrl);
}
}
Your help will be much appreciated!
Yoav Katz
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help