In Titanium 1.6.1 I can get Android 2.2 to play video on Kitchen Sink, but have been unable to get video to play outside of Kitchen Sink on Android. I d like the smallest code snippet possible to play a video in Android.
在我目前的尝试中,我试图利用电影——从Sch Sink把js用在新的项目中,如:
var btnPlayMovie = Titanium.UI.createButton({
text: Click me ,
left: 10,
height: 30,
top: 100
});
btnPlayMovie.addEventListener( click , function(){
var win = Titanium.UI.createWindow({
url: ./movie_embed.js ,
title: Test movie
});
//various methods of opening the window win.open(), Ti.UI.currentTab.open(win, {animated:true}), etc
//none have worked either erroring or showing a black screen.
});
它在Pitherine,但并非在Andrew 2.2。