Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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();
— asked April 11th 2010 by Mark Smillie
  • ipad
  • videoplayer
0 Comments

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

    — answered April 11th 2010 by Mark Smillie
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.