AddView

Adds a rendering view.

bool AddView(View *view, ViewConfig *config, rte::Error *err = nullptr)
Since
Available since v4.4.0.

When you need to use the player to play videos, you can call this method to add a view to the video renderer to display video content.

Note: Currently only one view is supported.

Timing

This method must be called before calling SetCanvas.

Parameters

view
HWND window handle.
config
Settings of the View object, currently pass NULL.
err
Status or error information. See Error.

Return Values

Whether the view is added successfully:
  • true: View added successfully.
  • false: Failed to add view.