onResolutionChanged
Occurs when video resolution changes.
virtual void onResolutionChanged(int width, int height) = 0;
- Since
- v4.5.0
To monitor the resolution changes of the video stream being played, ensure that you call RegisterObserver to register the player observer first.
Trigger timing
When the resolution of the video stream changes, the SDK triggers this callback to report the current width and height of the video.
Restrictions
None.
Parameters
- width
- The width (px) of the video frame.
- height
- The height (px) of the video frame.