Titanium Community Questions & Answer Archive

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

Video Player for Android?

My question has been answered in the below post.

— asked August 19th 2010 by Colton Arabsky
  • android
  • player
  • video
0 Comments

2 Answers

  • Not sure how I figured this out, but for the Android-specific code:

    if (Ti.Platform.name == 'android') {
        var activeMovie = Titanium.Media.createVideoPlayer({
            media:contentURL,
            backgroundColor:'#000',
            movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
            scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,
        });
    }
    

    I used "contentURL" instead of "media" and it worked! :)

    — answered August 19th 2010 by Colton Arabsky
    permalink
    0 Comments
  • You need to attach the trace level log to see what the crash is.

    — answered August 19th 2010 by Don Thorp
    permalink
    1 Comment
    • Could you possibly… Explain how I would do that? I'm quite new to this whole thing :P

      — commented August 19th 2010 by Colton Arabsky
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.