Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1371

Allow video file to be saved to iPhone Camera Roll after recording

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:

      iOS

      Description

      It would be nice if we could take the video file after recording and upload to our server as well as save it to the device (so that if the upload is interrupted we can retain the video file).

        Issue Links

          Activity

          Hide
          jcesarmobile jcesarmobile added a comment -

          It has CB-248 linked as duplicate, not sure why we have both open, closing this one. Let's keep the conversation on CB-248

          Show
          jcesarmobile jcesarmobile added a comment - It has CB-248 linked as duplicate, not sure why we have both open, closing this one. Let's keep the conversation on CB-248
          Hide
          filmaj Filip Maj added a comment -

          Which API is this for, btw? navigator.camera? navigator.capture?

          Show
          filmaj Filip Maj added a comment - Which API is this for, btw? navigator.camera? navigator.capture?
          Hide
          filmaj Filip Maj added a comment -

          I've added this to the Core API audit wiki article for later review:

          http://wiki.apache.org/cordova/Core%20API%20Audit

          Show
          filmaj Filip Maj added a comment - I've added this to the Core API audit wiki article for later review: http://wiki.apache.org/cordova/Core%20API%20Audit
          Hide
          paul98 Paul R. added a comment -

          Uncomment that if statement and your video will be saved to your Camera Roll. Video's are automatically saved to the apps tmp folder.

          Show
          paul98 Paul R. added a comment - Uncomment that if statement and your video will be saved to your Camera Roll. Video's are automatically saved to the apps tmp folder.
          Hide
          shazron Shazron Abdullah added a comment -

          Thanks Nick. According to this comment, it is saved (Video capture using the Capture API):
          https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVCapture.m#L265

          In any case, for now - your JavaScript is passed back the path to the file in the callback, you can use the File API to copy it to your persistent filesystem.

          Show
          shazron Shazron Abdullah added a comment - Thanks Nick. According to this comment, it is saved (Video capture using the Capture API): https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVCapture.m#L265 In any case, for now - your JavaScript is passed back the path to the file in the callback, you can use the File API to copy it to your persistent filesystem.

            People

            • Assignee:
              jcesarmobile jcesarmobile
              Reporter:
              ngottlieb Nick Gottlieb
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development