Titanium Community Questions & Answer Archive

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

play video on android

Hi,

I create a video player like this:
var activeMovie = Titanium.Media.createVideoPlayer({
contentURL: httpURL.mp4,
backgroundColor:'#fff',
movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
});
activeMovie.play();

But only blank screen. I think that in simulator it couldnot play so I build it on my device. It's same.

Could you please help me solve this problem?

Thanks

— asked November 21st 2010 by aloha stitch
  • android
3 Comments
  • man plz use code blocks

    — commented June 26th 2013 by Abdelrhman Talat
  • var activeMovie = Titanium.Media.createVideoPlayer({ 
    contentURL: httpURL.mp4, 
    backgroundColor:'#fff', 
    movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
     scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL 
    }); activeMovie.play();
    
    — commented June 27th 2013 by Dharmik Patel
  • Only use url and try it.

    url: httpURL.mp4,
    

    Thanx,

    Dharmik

    — commented June 27th 2013 by Dharmik Patel

0 Answers

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.