Android Question VideoRecordApp _RecordComplete returns alwais false

skrjabin

Active Member
Licensed User
I am trying this sample, getting no errors, the video is recorded in the media folder but the result of Video_RecordComplete (Success As Boolean) is alwais false.

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(File.Combine(folder, 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)
   Else
       ToastMessageShow("No success", False)   
   End If
 

skrjabin

Active Member
Licensed User
Sorry for the delay. I was without internet over christmas and new year. Here comes a small testproject.
After recording the video the event is called, but with "Success = False".
 

Attachments

  • VideoRecTest1.zip
    10.8 KB · Views: 65
Upvote 0
Top