I cannot seem to get the VideoRecordApp working. I can call it OK but it returns success = false upon completing. Here is the code and unfiltered log.
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: Portrait
#CanInstallToExternalStorage: True
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
Dim videoRecorder As VideoRecordApp
End Sub
Sub Globals
Dim vv As VideoView
Private RecordVideo1 As Button
Private Panel1 As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
If FirstTime Then
videoRecorder.Initialize("videoRecorder")
End If
vv.Initialize("vv")
Activity.AddView(vv, 0, 0, 100%x, 50%y)
End Sub
Sub RecordVideo1_Click
videoRecorder.Record2(File.DirInternal, "1.mp4", 60)
End Sub
Sub videoRecorder_RecordComplete (Success As Boolean)
Log("video = " & Success)
If Success Then
vv.LoadVideo(File.DirInternal, "1.mp4")
vv.Play
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
B4X:
[CODE]sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Class anywheresoftware.b4a.B4AThreadPool failed lock verification and will run slower.
java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.content.Intent.getData()' on a null object reference
** Activity (main) Resume **
at anywheresoftware.b4a.audio.AudioRecordApp$VideoRecordApp$1$1.run(AudioRecordApp.java:228)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
MSG_WINDOW_FOCUS_CHANGED 1
Starting input: tba=android.view.inputmethod.EditorInfo@a9ce7e2 nm : b4a.example ic=null
[IMM] startInputInner - mService.startInputOrWindowGainedFocus
Input channel constructed: fd=72
video = false
Last edited: