onResolutionChanged

Callback for video resolution changes.

public void onResolutionChanged(int width, int height)
Since
Available since v4.4.0.

You must call registerObserver to register a player observer object before you can listen for video stream resolution changes.

Trigger Timing

This callback is triggered when the resolution of the video stream changes, reporting the current video width and height.

Parameters

width
The width of the video frame, in px.
height
The height of the video frame, in px.