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.
4 Answers
-
Accepted Answer
you must add the movie to the window
win.add(activeMovie); -
I am having the same problem. Can anyone paste the sample code.
-
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(); -
Thanks