setCanvas
Sets the view window for displaying video.
public void setCanvas(Canvas canvas) throws RteException
- Since
- Available since v4.4.0.
This method sets the Canvas object used to display video.
Timing
You must call this method after calling Player.
Parameters
- canvas
- The object used to render video frames. See Canvas.
Exceptions
When the method call fails, the SDK throws an exception and returns the corresponding error information. You need to catch and handle the exception.