我正在开发一个应用程序,具有类似的功能为学习目的的instagram。我想上传一个视频从画廊到我的云。在iOS中,Swift已经提供了一个内置的功能,可以根据我的需要(.low,.medium,.high)修复质量。有没有办法在android中实现类似的行为? 我试过很多东西,比如Silicompressor和lightCompressor,但都不起作用。 工作流程是: -> select video from storage
-> resize video size in background without saving it as a new one in the stor
我正在使用Swift构建一个视频库应用程序,我想知道在哪里保存下载的视频文件,是更好地使用文档文件夹还是仅仅使用临时文件夹。
let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0]
// OR
let documentsPath = NSTemporaryDirectory()
谢谢!