Size the videoPlayer in 1.2
I want to have an embedded movie player on an ipad screen. I've got it working to play full screen, but I want to start off playing in something 500x400, and then if the user wants to they can have it go full screen. I would think height and width would do it but nope. TIA!
code
var activeMovie = Titanium.Media.createVideoPlayer({
contentURL:'pages/foo.mp4',
backgroundColor:'#111',
width:500,
height:600,
movieControlStyle: Titanium.Media.VIDEO_CONTROL_EMBEDDED,
scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
});
win1.add(activeMovie);
activeMovie.addEventListener('complete',function()
{
Titanium.UI.createAlertDialog({title:'Movie', message:'Completed!'}).show();
win.close();
});
activeMovie.play();
1 Answer
-
Figured it out. Just put it in a sized view. There should be a "poster" to associate a pic with the VideoPlayer. Any ideas here? THANKS