Android Question VideoView as type - missing library reference

John Sparrow

Member
Licensed User
Longtime User
Hope someone can help

I am using the code from the b4a help files on videoview. I have unzipped and copied the two updated Audio files into the Library but when I run the following code:

Sub GlobalsDim vv As VideoViewEnd SubSub Activity_Create(FirstTime AsBoolean)
vv.Initialize("vv")
Activity.AddView(vv, 10dip, 10dip, 250dip, 250dip)
vv.LoadVideo(File.DirRootExternal, "somefile.mp4")
vv.PlayEnd SubSub vv_Complete
Log("Playing completed")End Sub

I get the following error message:

"Error description: Unknown type: videoview
Are you missing a library reference?"

Can anyone advise please

Thanks

John
 
Top