public interface Layer
In order to ensure that layers' views can be overlaid ON TOP of each other, they must be of
type FrameLayout
.
See SubtitleLayer
, VideoSurfaceLayer
, and PlaybackControlLayer
for examples.
Modifier and Type | Method and Description |
---|---|
android.widget.FrameLayout |
createView(LayerManager layerManager)
Builds and sets up the view that will be layered onto the video player.
|
void |
onLayerDisplayed(LayerManager layerManager)
Called when a Layer's view has been displayed on the screen.
|
android.widget.FrameLayout createView(LayerManager layerManager)
FrameLayout
to ensure that the LayerManager
can overlay it on top
of the other layers.layerManager
- The LayerManager
which will contain this layer.LayerManager
void onLayerDisplayed(LayerManager layerManager)
layerManager
- The LayerManager
which will contain this layer.