addOverlay

fun addOverlay(tag: String, overlay: View): ArcMediaPlayer

Configuration setting: This can also be set using .configureMediaPlayer and the ArcXPVideoConfig object. One or more views can be added on top of the video view using the configuration option addOverlay(). This method takes a tag name for the view as well as the view. The client app will still have a pointer to the overlays so they can then control the visibility or other parameters of the views from within the client code. This method can can be called multiple times in order to add multiple overlays.

Return

Media player object

Parameters

tag

Name of the overlay. This name is used to retrieve the overlay using .getOverlay

overlay

Overlay view