Hello, I have a MP4 video file on external SD card and it it's perfectly viewable if I set the player as Activity.Addview with full screen size. Now, I want to use just a part of the screen for player, but the result is that there is a sort of "active window" that's of the dimensions I set, but the player is always on full screen with alpha-blending. This is the code for activation:
(note: the initialization is done in a previous part of the program)
after this, there is an active animation of 2 seconds for other elements; at animation end the code is:
The behaviour is the video played, but in full screen alpha-blending and upper left part as normal video.
What is wrong ? How can I play a video in a reduced size player ? Must I create some smaller size video as suggested in a couple of posts I've read here ? Is the automatic resizing possible by software ?
Thanks in advance...
(note: the initialization is done in a previous part of the program)
B4X:
vv.Visible = False
vv.LoadVideo(File.DirRootExternal,"/aires/vid/video1.mp4")
Activity.AddView(vv, 10dip, 100dip, 320dip, 240dip) ' add video player
B4X:
vv.MediaControllerEnabled = False
vv.Visible = True
vv.Play
What is wrong ? How can I play a video in a reduced size player ? Must I create some smaller size video as suggested in a couple of posts I've read here ? Is the automatic resizing possible by software ?
Thanks in advance...
Last edited: