Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-8471

iOS: VideoPlayer - black screen with local file on iOS5 and XCode 4.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0.1
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium SDK version: 1.8.0.1, 2.0
      iOS 5 Simulator and Device
      TiStudio 1.0.7.201112281340
      XCode version 4.2 Build 4D199

      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

          Activity

            People

            • Assignee:
              srahim Sabil Rahim
              Reporter:
              b0morris Brad Morris
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-12803
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration