onResolutionChanged

Callback triggered when the video resolution changes.

virtual void onResolutionChanged(int width, int height) {}
Since
Available since v4.4.0.

If you need to monitor resolution changes of the video stream being played, you must first call RegisterObserver to register a player observer object.

Trigger Timing

When the resolution of the video stream changes, the SDK triggers this callback to report the current video width and height.

Parameters

width
Width of the video frame (in pixels).
height
Height of the video frame (in pixels).