SetCanvas
Sets the view window for displaying video.
bool SetCanvas(Canvas *canvas, Error *err = nullptr)
- Since
- Available since v4.4.0.
This method specifies a Canvas object to display video. Once the video stream starts playing successfully, the video will be displayed on this Canvas.
Timing
This method must be called after Player is called.
Parameters
Return Values
- true: Set successfully.
- false: Set failed. You can check the error code returned in the
errparameter for details.