Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8471] iOS: VideoPlayer - black screen with local file on iOS5 and XCode 4.2

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-12T09:50:24.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-12 API
ComponentsiOS
Labelsapi, qe-port
ReporterBrad Morris
AssigneeSabil Rahim
Created2012-01-21T22:53:13.000+0000
Updated2012-08-14T16:50:02.000+0000

Description

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

Attachments

FileDateSize
iOS_screen_4.3.jpg2012-03-31T20:41:51.000+000037505
iOS_screen_5.0.jpg2012-03-31T20:41:51.000+000025447
sample.mp42012-01-21T22:53:13.000+000057232

Comments

  1. Olga Romero 2012-08-14

    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

JSON Source