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:

Screenshot_2016-04-20-17-23-49[1].png


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
 
Top