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 2020/03/12 15:53:52 UTC

[GitHub] [cordova-plugin-camera] rricamar edited a comment on issue #533: fix(camera): resultForVideo uri in iOS13

rricamar edited a comment on issue #533: fix(camera): resultForVideo uri in iOS13
URL: https://github.com/apache/cordova-plugin-camera/pull/533#issuecomment-598264905
 
 
   Hi @wingo7 , if you read the whole original issue, you'll see that in addition of the plugin source code solution, you'll need also to patch the fileUri after the plugin call:
   
   ```typescript
   fileUri = await this.camera.getPicture(options); // Using plugin fork with this PR solution!
   
   // XXX: fix path for file:// protocol in iOS 13
   const indexOfFilePrefix = parseInt(fileUri.indexOf('file://'), 10);
   
   if (indexOfFilePrefix === -1) {
       fileUri = `file://${fileUri}`;
   }
   ```
   
   I hope this help you 👍 

----------------------------------------------------------------
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