Hi It’s not clear to me what error you run into, could you please provide more details? It would be better if you could submit the issue to JIRA.
Thanks Xiaosong From: Crosswalk-help [mailto:[email protected]] On Behalf Of Yoav Katz Sent: Monday, March 21, 2016 11:58 PM To: [email protected] Subject: [Crosswalk-help] Fwd: setMediaPlaybackRequiresUserGesture 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
