Hi I'm Filippo and this is my first post on this forum. I'm making an app for my school but I have some problems with Actyvity.loadLayout and VideoView. I have to play a video in full screen and I have write this code:
In this way the video is very small. Someone can help me?
P.S. Sorry for my bad english but I'm Italian and I don't know English very well so I use google translate
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim vv1 As VideoView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Animazione
End Sub
Sub Animazione
vv1.Initialize("vv")
Activity.LoadLayout("a")
Activity.AddView(vv1, 0%x, 0%y, 100%x, 100%y)
File.Copy(File.DirAssets, "b.mp4", File.DirInternal, "b.mp4")
vv1.LoadVideo(File.DirInternal, "b.mp4")
vv1.Play
End Sub
P.S. Sorry for my bad english but I'm Italian and I don't know English very well so I use google translate