| Constructor and Description |
|---|
VideoSurfaceLayer(boolean autoplay) |
| 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 |
moveSurfaceToBackground()
When mutliple surface layers are used (ex.
|
void |
moveSurfaceToForeground()
When mutliple surface layers are used (ex.
|
void |
onLayerDisplayed(LayerManager layerManager)
Called when a Layer's view has been displayed on the screen.
|
void |
release()
When you are finished using this object, call this method.
|
void |
setAutoplay(boolean autoplay)
Sets whether the video should start playing as soon as the surface is created.
|
public VideoSurfaceLayer(boolean autoplay)
autoplay - Whether the video should start playing as soon as the surface view is created.public android.widget.FrameLayout createView(LayerManager layerManager)
LayerFrameLayout to ensure that the LayerManager can overlay it on top
of the other layers.createView in interface LayerlayerManager - The LayerManager which will contain this layer.LayerManagerpublic void onLayerDisplayed(LayerManager layerManager)
LayeronLayerDisplayed in interface LayerlayerManager - The LayerManager which will contain this layer.public void moveSurfaceToBackground()
public void moveSurfaceToForeground()
public void setAutoplay(boolean autoplay)
autoplay - If true, the video starts playing as soon as the surface is created. If false,
then the video must be started programmatically.public void release()