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
2 Answers
-
Is this general considered an Android bug, or is this something that can be fixed somehow?
-
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.