createVideoInExternalDir
Creates a file for video capture in the external movies directory.
The file is created in the app-specific external movies directory:
Primary:
{externalFilesDir}/Movies/STREAM_VID_{timestamp}.mp4Fallback:
{cacheDir}/stream_cache/STREAM_VID_{timestamp}.mp4(if external storage unavailable)
The file name includes a timestamp to ensure uniqueness.
Return
Result.Success with the created File, or Result.Failure with an error
Parameters
context
Android context for accessing storage directories