CanvasConfig

This class provides methods relevant to video rendering by the player.

class CanvasConfig {
 public:
 CanvasConfig() {RteCanvasConfigInit(&c_canvas_config, nullptr);}
 void SetRenderMode(VideoRenderMode mode, Error *err = nullptr);
 VideoRenderMode GetRenderMode(Error *err = nullptr);
 void SetMirrorMode(VideoMirrorMode mode, Error *err = nullptr);
 VideoMirrorMode GetMirrorMode(Error *err = nullptr);
};
Since
v4.5.0

Method

SetRenderMode
Sets the vide render mode. See SetRenderMode.
GetRenderMode
Gets the current video rendering mode setting. See GetRenderMode.
SetMirrorMode
Sets the rendering mode of the video. See SetMirrorMode.
GetMirrorMode
Get the current video mirror mode setting. See GetMirrorMode.

GetMirrorMode

Gets the current image mode setting.

VideoMirrorMode GetMirrorMode(Error *err = nullptr);
Since
v4.5.0

Call timing

Call this method after GetConfigs [3/3].

Restrictions

None.

Parameters

err
The state or error information: Error.

Returns

The current image mode. See RteVideoMirrorMode.

GetRenderMode

Gets the current video render mode.

VideoRenderMode GetRenderMode(Error *err = nullptr)
Since
v4.5.0

Call timing

Call this method after GetConfigs [3/3].

Restrictions

None.

Parameters

err
The state or error information: Error.

Returns

The current video rendering mode. See RteVideoRenderMode.

SetMirrorMode

Sets the mirror mode of the video.

void SetMirrorMode(VideoMirrorMode mode, Error *err = nullptr);
Since
v4.5.0

Call timing

Call this method after SetConfigs [3/3].

Restrictions

None.

Parameters

mode
The mirror mode. See RteVideoMirrorMode. The default value is kRteVideoMirrorModeAuto, which means to be determined by the SDK. The SDK disables mirror mode by default.
err
The state or error information: Error.

SetRenderMode

Sets the vide render mode.

void SetRenderMode(VideoRenderMode mode, Error *err = nullptr);
Since
v4.5.0

Call timing

Call this method after SetConfigs [3/3].

Restrictions

None.

Parameters

mode
The video rendering mode. See RteVideoRenderMode. The default rendering mode is kRteVideoRenderModeHidden, which means that the video size is scaled proportionally to fill the view.
err
The state or error information: Error.