Titanium Community Questions & Answer Archive

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

Android videoPlayer freezes on first frame

Not ure why this is, or whether it is an issue with my local android emulator, but I have setup the code below:

var contentURL = 'vw.mp4';
    if (Ti.Platform.name == 'android') {
        contentURL = 'vw.mp4';
    }
    var activeMovie = Titanium.Media.createVideoPlayer({
        contentURL: contentURL,
        fullscreen:true,
        zIndex:2000,
        top:0,
        left:0
    });
    activeMovie.play();

And when it plays it shows the first frame, then it freezes the video, but continues playing the audio through the speakers. Any ideas whether I have done something wrong with the API or not. Also, there are no controls to pause/stop etc… But this could be because I have to manually insert my themed buttons.

Thankyou,
Dan

— asked April 20th 2010 by Dan Duke
  • android
  • audio
  • emulator
  • freeze
  • mp4
  • video
  • win32
0 Comments

2 Answers

  • Is this general considered an Android bug, or is this something that can be fixed somehow?

    — answered April 27th 2010 by Dan Duke
    permalink
    0 Comments
  • I know this is an outdated question.
    Anyway, the answer is simple:
    Video playback is not working properly on android emulator.
    Just try to playback a file from youtube and you'll see.
    You have to test video playback on a real device.

    — answered August 4th 2010 by Friedrich Seydel
    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.