Anybody have any (successful) experience with displaying video via a webview in android
2 Answers
Nothing mate , the URL will display text etc but if try to use a html5 video tag in the remote html file it doesn't work at all feel like I've tried every option .
Try this
var media_url='http://www.youtube.com/watch?v=-RRGA25bEPU'; var movie= '<html><head></head><body style="margin:0"> <embed id="yt" src="'+media_url+'" type="application/x-shockwave-flash" width="200" height="200"></embed> </body></html>'; var webview = Ti.UI.createWebView({ // title:'Videos'+index, html: movie, height:450, width:600, top:25, left:90 }); win.add(webview);
Your Answer
Think you can help? Login to answer this question!