Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35331

Camera roll pictures in iOS take much longer to come in than pictures taken from the camera.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.15.0, Apache Flex 4.16.0
    • None
    • .Unspecified - Mobile
    • None
    • Apple Apache Flex 4.15 and 4.16 with different Air 23 - 25.

    Description

      Using very simple code. Pictures coming from the camera roll could take up 3 x slow to come in that pictures take from the camera. Older versions of sdks did not have this issue.
      Going from the loader.contentLoaderInfo to where the loaderComplete is hit is where the time difference is.

      protected function imageTakePicture_mouseDownHandler(event:MouseEvent):void
      {
      Label.text="Camera Start";
      if(CameraUI.isSupported)

      { var camera:CameraUI = new CameraUI(); camera.addEventListener(MediaEvent.COMPLETE, mediaEventComplete); camera.launch(MediaType.IMAGE); }

      }

      protected function imageCameraRoll_mouseDownHandler(event:MouseEvent):void
      {
      Label.text="Camera Roll Start";

      if (CameraRoll.supportsBrowseForImage)

      { var roll:CameraRoll = new CameraRoll(); roll.browseForImage(); roll.addEventListener(MediaEvent.SELECT,mediaEventComplete); }

      }

      private function mediaEventComplete(event:MediaEvent):void
      {

      var mediaPromise:MediaPromise = event.data;

      { var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleted); loader.loadFilePromise(mediaPromise); return; }

      }

      private function loaderCompleted(event:Event):void

      { Label.text="Loader Completed"; }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pchickman Perry Hickman

            Dates

              Created:
              Updated:

              Slack

                Issue deployment