Requires Audio library v1.70+: https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-635852
Based on FileProvider example and class: Sharing files from your app with File Provider
Based on FileProvider example and class: Sharing files from your app with File Provider
B4X:
video.Initialize("video") 'video is a process global VideoRecordApp variable.
Dim folder As String = Starter.Provider.SharedFolder
Dim FileName As String = "1.mp4"
video.Record3(folder, FileName, -1, Starter.Provider.GetFileUri(FileName))
Wait For Video_RecordComplete (Success As Boolean)
If Success Then
'Example of playing the recorded video
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "")
Starter.Provider.SetFileUriAsIntentData(in, FileName)
in.SetType("video/*")
StartActivity(in)
End If
Last edited: