Android Question Setting background in VideoView?

Troberg

Well-Known Member
Licensed User
Longtime User
I'd like a black background in the VideoView, so I get nice, black borders instead of the current grey (much better if running on a projector).

Well, it has a Background property and a Color property. However, if I change these, I still get my grey borders, but the video becomes black. Not exactly the behavior I wanted...

Is this doable at all, and in that case, how?
 

moster67

Expert
Licensed User
Longtime User
Haven't tried but perhaps you can assign the videoview to a panel and then set background color of the panel??
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
agree with monster .. currently playing with VideoView ..

maybe play with something like this ..
B4X:
Dim Panel1 AS Panel
Panel1.Initialize("")
Panel1.Color = Colors.Red
Activity.AddView(Panel1, 0, 0, 100%x, 100%y)
  
Dim VV as VideoView
VV.Initialize("vv")  
Panel1.AddView(VV,10%x,10%y,80%x,80%y)
 
Upvote 0
Top