(function() { var window = Titanium.UI.createWindow(); var webView = Titanium.UI.createWebView({ pluginState:Titanium.UI.Android.WEBVIEW_PLUGINS_ON_DEMAND }); webView.url = 'http://camendesign.com/code/video_for_everybody/test.html'; window.add(webView); window.open(); })();
JSON Source
Need to set the pluginState property of the webview. This works on my S3 running 4.1.1 but not on my S2 running 2.3.6
You might also want to checkout this page http://developer.android.com/guide/appendix/media-formats.html
Limited by basic media player formats that android supports in its webview.