Apache Cordova
  1. Apache Cordova
  2. CB-1371

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

    Details

    • Type: Wish Wish
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Plugin Media Capture
    • 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
          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 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.
          Hide
          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
          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
          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
          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
          Filip Maj added a comment -

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

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

            People

            • Assignee:
              Unassigned
              Reporter:
              Nick Gottlieb
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Development