Sorry, pls excuse me.
I followed exactly what is in the sample code...when I deployed it.. it said it could not play the video?
I have already included the audio library in the application..Did I miss something?
I followed exactly what is in the sample code...when I deployed it.. it said it could not play the video?
I have already included the audio library in the application..Did I miss something?
B4X:
Simple example of using VideoView:
Sub Globals
Dim vv As VideoView
End Sub
Sub Activity_Create(FirstTime As Boolean)
vv.Initialize("vv")
Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)
'vv.LoadVideo(File.DirRootExternal, "somefile.mp4")
'vv.LoadVideo(File.DirRootExternal, "test.mp4").
'vv.LoadVideo(File.DirAssets,"test.mp4")
'vv.LoadVideo(File.DirDefaultExternal,"test.mp4")
vv.LoadVideo("http","http://www.example.com/video.mp4")
vv.Play
vv.Play
End Sub
Sub vv_Complete
Log("Playing completed")
End Sub