setCanvas
Sets the view window for displaying the video.
public void setCanvas(Canvas canvas) throws RteException;
- Since
- v4.5.0
This method specifies a Canvas object to display the video. Once the the video stream sucessfully plays, the video image will be displayed on the specified canvas.
Call timing
Call this method after Player.
Restrictions
None.
Parameters
- canvas
- The Canvas object on which the video is rendered: Canvas
Exception
If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.