CrazyOrr/FFmpegRecorder

is there any method to record video on removable sdcard?

anonym24 opened this issue · 4 comments

is there any method to record video on removable sdcard?

You can specify the location of recorded video by the file parameter when initialize FFmpegFrameRecorder:

mFrameRecorder = new FFmpegFrameRecorder(file, videoWidth, videoHeight, 1);

yes I know but it won't work for removable micro sd card (from Lollipop (21) there seems to be limitations)
so I'm not talking about internal phone memory (phone sdcard), but about removable micro sdcard:

image

Not sure about the Lollipop (21) one, you may check out the part of Select between multiple storage locations from the official doc.

the only writeable thing now seems DocumentFile for removable devices, which is not File https://developer.android.com/reference/android/support/v4/provider/DocumentFile.html
to get writable DocumentFile we need to call intent