public interface VideoListener
| Modifier and Type | Method and Description |
|---|---|
void |
onRenderedFirstFrame()
Called when a frame is rendered for the first time since setting the surface, and when a frame
is rendered for the first time since a video track was selected.
|
void |
onVideoSizeChanged(int width,
int height,
int unappliedRotationDegrees,
float pixelWidthHeightRatio)
Called each time there's a change in the size of the video being rendered.
|
void onVideoSizeChanged(int width,
int height,
int unappliedRotationDegrees,
float pixelWidthHeightRatio)
width - The video width in pixels.height - The video height in pixels.unappliedRotationDegrees - For videos that require a rotation, this is the clockwise
rotation in degrees that the application should apply for the video for it to be rendered
in the correct orientation. This value will always be zero on API levels 21 and above,
since the renderer will apply all necessary rotations internally. On earlier API levels
this is not possible. Applications that use TextureView can apply the
rotation by calling TextureView.setTransform(android.graphics.Matrix). Applications that do not
expect to encounter rotated videos can safely ignore this parameter.pixelWidthHeightRatio - The width to height ratio of each pixel. For the normal case of
square pixels this will be equal to 1.0. Different values are indicative of anamorphic
content.void onRenderedFirstFrame()