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 on Ios4

Has anyone got video to work on Ios4. I've tested the Kitchen sink on it, and the only video that i get to play is the embedded video. None of the other play.

Just checking if anyone has found a fix for it.

— asked June 16th 2010 by Tricycle Inc.
  • embedded
  • ios4
  • movie
  • player
  • video
1 Comment
  • same issue over here, anyone solved it?

    — commented June 22nd 2010 by Christiana Kogevina

4 Answers

  • Accepted Answer

    you must add the movie to the window
    win.add(activeMovie);

    — answered June 24th 2010 by Christiana Kogevina
    permalink
    0 Comments
  • I am having the same problem. Can anyone paste the sample code.

    — answered June 28th 2010 by Vinod Tella
    permalink
    0 Comments
  • i got it to work:

    var win = Titanium.UI.currentWindow;
    var contentURL = 'http://';
    var activeMovie = Titanium.Media.createVideoPlayer({
    contentURL: contentURL,
    backgroundColor:'#111',
    movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
    scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
    });

    win.add(activeMovie);
    activeMovie.play();

    — answered June 28th 2010 by Tricycle Inc.
    permalink
    0 Comments
  • Thanks

    — answered June 28th 2010 by Vinod Tella
    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.