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

          Nick Gottlieb created issue -
          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.
          Joe Bowser made changes -
          Field Original Value New Value
          Component/s iOS [ 12316400 ]
          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
          Filip Maj made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Labels audit
          Assignee Filip Maj [ filmaj ]
          Component/s CordovaJS [ 12317202 ]
          Component/s iOS [ 12316400 ]
          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?
          Shazron Abdullah made changes -
          Component/s iOS [ 12316400 ]
          Bas Bosman made changes -
          Component/s Plugin Media Capture [ 12320646 ]
          Component/s CordovaJS [ 12317202 ]
          Jeff Sawatzky made changes -
          Link This issue duplicates CB-248 [ CB-248 ]
          Shazron Abdullah made changes -
          Assignee Filip Maj [ filmaj ]
          Environment iOS
          Component/s iOS [ 12316400 ]

            People

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

              Dates

              • Created:
                Updated:

                Development