Videoview don't show recorded video

birnesoft

Active Member
Licensed User
Longtime User
When I start a record with my normal cam, the B4A-videoview displays it correct.
But when I record with the B4A-VideoRecordApp my screen stay black, when I want to display???:sign0148:
But the video is recorded and the mediaplayer displays it correct.

Sub Globals
Dim rr As VideoRecordApp
Dim vv As VideoView
Dim bb As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
rr.Initialize("rr")
File.Delete(File.DirRootExternal,"t.mp4")
rr.Record(File.DirRootExternal,"t.mp4")

vv.Initialize("vv")
Activity.AddView(vv,10,10,222,333)

bb.Initialize("bb")
bb.Text="play"
Activity.AddView(bb,10,350,222,333)
End Sub

Sub bb_click

vv.LoadVideo(File.DirRootExternal,"t.mp4")
vv.Play
vv.MediaControllerEnabled=False

End Sub

best regards

Björn
 

pluton

Active Member
Licensed User
Longtime User
Look under what name is saved your video.
Because on some devices it saves under MOV{number} example MOV02

Put this little message to see if it is sucess:

B4X:
Sub rr_RecordComplete (Success As Boolean)
    Log(Success)
    If Success Then
      ToastMessageShow("Yes it is recorded",False)
      
    End If
End Sub
 
Upvote 0

birnesoft

Active Member
Licensed User
Longtime User
Thanks,
but It's not the filename, because videoview plays the sound and don't show the video.
And the video is recorded (the phones mediaplayer displays it correct).
 
Upvote 0

birnesoft

Active Member
Licensed User
Longtime User
Thanks I proved that with RecordComplete, that's not the problem
I don't know waht happens with my phone. On the phone of my friend it works fine.

best regards

Björn
 
Upvote 0
Top