iOS Question VideoPlayer Watermark Label

gregchao

Member
Licensed User
Longtime User
I am trying to put a watermark label in front of the video while it is playing. When the user goes to full screen, my watermark label disappears. Is there any way to keep my label in front of videoplayer? I am using videoplayer that replaces videoview.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes:
B4X:
Dim no As NativeObject = VideoPlayer1
Dim controller As NativeObject = no.GetField("controller")
Dim p As Panel
p.Initialize("")
p.Color = Colors.Red
p.SetLayoutAnimated(0, 0, 20, 20, 100, 100)
Dim v As NativeObject = controller.GetField("contentOverlayView")
v.RunMethod("addSubview:", Array(p))
 
Upvote 0
Top