Android Question [RESOLVED] Load mp4 as Background

MarcoRome

Expert
Licensed User
Longtime User
Hi all.
I'd like to load as background an mp4 movie and then place over a few buttons, etc.
I have this code:
B4X:
Sub Globals
    Dim vv As VideoView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.Color = Colors.White
    'vv.Initialize("vv")
    Activity.AddView(vv, 0, 0, 100%x, 100%y)
    File.Copy(File.DirAssets, "vid_field.m4v", File.DirInternal, "vid_field.m4v")
    vv.LoadVideo(File.DirInternal, "vid_field.m4v")
    vv.MediaControllerEnabled = False
    vv.Play


End Sub

and i have this effect:



1/3 all screen.... but in another apps i see effect that movie have type Gravity, so i see for all screen.
Is it possibile the mp4 movie to the entire screen ??
Thank you
Marco
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…