Show VideoView media controls manually

yappa

Member
Licensed User
Longtime User
Hello.

Subj! Is there any way to show\hide videoview's contol panel from code?
 

yappa

Member
Licensed User
Longtime User
Try this code (requires Reflection library):
B4X:
Sub MediaControllerVisible(vv As VideoView, visible As Boolean)
   Dim r As Reflector
   r.Target = vv
   r.Target = r.GetField("mMediaController")
   If visible Then r.RunMethod("show") Else r.RunMethod("hide")
End Sub

will check this out, thank you!
 
Upvote 0
Top