You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/25 13:53:32 UTC

[GitHub] [cordova-plugin-camera] markerio edited a comment on issue #506: iOS13 file_uri error picking video from gallery

markerio edited a comment on issue #506: iOS13 file_uri error picking video from gallery
URL: https://github.com/apache/cordova-plugin-camera/issues/506#issuecomment-535032276
 
 
   Attention!
   
   If your app has video upload feature, then this issue will be one of the most important issues you will face when your app users start upgrading their iOS devices to v13. I believe that not all cordova developers have upgraded their testing devices yet, thats why this thread is not getting so much attention.
   
   Thanks for @litiobat and for his efforts in helping the community solving this issue. Please read his description and the comment he added then after.
   
   I have an app in production, which has video upload feature. I forked the master plugin and applied @litiobat's fix, for any of you guys interested in solving this issue, you can use this fork below:
   
   `<plugin spec="https://github.com/markerio/cordova-plugin-camera.git" source="git" />`
   
   I have to add that this didn't solely fix the issue for me, because the returned path is not prefixed with the file:// protocol, so please keep in mind that in the success callback check for the file protocol and fix that accordingly, as follows:
   
   `function onVideoSourceSuccess(fileURI) {`
   `  // fix`
   `  fileURI = fileURI.indexOf('file://')==0?fileURI:'file://'+fileURI;`
   `  // continue your code here`
   `  }`
    
   I believe applying this fix in the master plugin is better and safer for all, however some developers can't wait for the next release.
   
   Wish the best for all.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org