Issue
When playing a local video on iOS 5 (simulator or device), it shows up as a black screen. Only happens on a machine with XCode 4.2. On a computer with the exact same configurations and XCode 4.1, it plays properly.
Repro sequence
var win = Ti.UI.createWindow(),
videoPlayer = Ti.Media.createVideoPlayer({
borderWidth: 1,
width: "100%",
height: "100%",
media: Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, "sample.mp4"),
sourceType: Ti.Media.VIDEO_SOURCE_TYPE_FILE,
autoplay: true
});
win.add(videoPlayer);
win.open();
Console output
[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)
[INFO] iPhone Device family: universal
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: iphone
[INFO] Launching application in Simulator
[INFO] Launched application in Simulator (4.54 seconds)
[INFO] Found 5.0 patch installed
[INFO] Application started
Verified fix with: Titanium Studio, build: 2.1.1.201207271312 Titanium SDK: 2.2.0.v20120813184911 Devices: iPhone 4s 5.0.1 iPad1 5.1.1 Simulator 5.1