When use VideoApp for take video, in any phones the record button is not enabled.
sAMSUNG gALAXI NOTE 8 (button not enabled).. the button are enabled 1 second and disabled with no interaction
In Xiaomi Mi A1 are ok.
sAMSUNG gALAXI NOTE 8 (button not enabled).. the button are enabled 1 second and disabled with no interaction
In Xiaomi Mi A1 are ok.
B4X:
Sub Process_Globals 'IN MODGENERAL'
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Public videoApp As VideoRecordApp
....
private Sub TakeVideo
SetFotoNames
modGeneral.videoApp.Initialize("video") 'video is a process global VideoRecordApp variable.
Dim folder As String = Starter.Provider.SharedFolder
Dim FileName As String =VideoFileName ' "1.mp4"
'Starter.provider.GetFileUri(VideoFileName)
'modGeneral.videoApp.Record3(folder, FileName , -1, Starter.CreateFileProviderUri (folder,FileName))
modGeneral.videoApp.Record3(folder, FileName , -1, Starter.provider.GetFileUri(VideoFileName))
Wait For Video_RecordComplete (Success As Boolean)
If Success Then
'' SaveRutaFotoEnDB(folder,FileName)
'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
End Sub
Last edited: