protected class VideoView.AttributeContainer
extends java.lang.Object
AttributeSet| Modifier and Type | Field and Description |
|---|---|
int |
apiImplLegacyResourceId
The resource id that points to a custom implementation for the Android
MediaPlayer
backed VideoViewApi. |
int |
apiImplResourceId
The resource id that points to a custom implementation for the
ExoPlayer
backed VideoViewApi |
java.lang.Boolean |
measureBasedOnAspectRatio
Specifies if the
VideoView should be measured based on the aspect ratio. |
ScaleType |
scaleType
Specifies the scale that the
VideoView should use. |
boolean |
useDefaultControls
Specifies if the
VideoControls should be added to the view. |
boolean |
useTextureViewBacking
Specifies if the
VideoViewApi implementations should use the TextureView
implementations. |
| Constructor and Description |
|---|
AttributeContainer(android.content.Context context,
android.util.AttributeSet attrs)
Reads the attributes associated with this view, setting any values found
|
public boolean useDefaultControls
VideoControls should be added to the view. These
can be added through source code with VideoView.setControls(VideoControls)public boolean useTextureViewBacking
VideoViewApi implementations should use the TextureView
implementations. If this is false then the implementations will be based on
the SurfaceViewpublic int apiImplResourceId
ExoPlayer
backed VideoViewApipublic int apiImplLegacyResourceId
MediaPlayer
backed VideoViewApi. This will only be used on devices that do not support the
ExoPlayer (see DeviceUtil.supportsExoPlayer(Context) for details)public ScaleType scaleType
VideoView should use. If this is null
then the default value from the MatrixManager
will be used.public java.lang.Boolean measureBasedOnAspectRatio
VideoView should be measured based on the aspect ratio. Because
the default value is different between the ResizingSurfaceView
and ResizingTextureView this will be null
when not specified.public AttributeContainer(android.content.Context context,
android.util.AttributeSet attrs)
context - The context to retrieve the styled attributes withattrs - The AttributeSet to retrieve the values from