cordova-plugin-video-editor
cordova-plugin-video-editor copied to clipboard
Change Output location on Transcode
Is the output location of the video when you transcode it a temporary directory or permanent?
Are you able to change the directory to something that is temporary or permanent, depending on what you want?
Thanks
Any ideas here? I would like to be able to write these transcoded videos to a temporary location that automatically gets cleaned out.
I could just create my own way of clearing them, but it would be much easier to just write to a temp directory.
It seems that the API places the file in the same directory as the input file. Can you not just move the file after you transcode it? That was the way I approached it my app.
Hmmm. My original file is in: /var/mobile/Containers/Data/Application/22054F35-31B1-41F7-9257-61A4E9E3B3F4/tmp/capture-T0x146d14a40.tmp.JnGasA/capturedvideo.MOV
and my output file goes into: /var/mobile/Containers/Data/Application/22054F35-31B1-41F7-9257-61A4E9E3B3F4/Library/Caches/38Rza4wk2eSG2qkGh.mp4
Are those the same thing just sym-linked or something? Yes, I could just move it. But adding the ability to specify where it is written seems like a good and efficient feature.
Sorry about that. I didn't realize this because I always move the file afterwards :-)
+1, it'd be great if we could choose to transcode to the temp directory rather than to the library or not. (where does it save the file when not saving to library? - the code isn't very clear and my app is broken at the moment)