AddView
Adds a view to be rendered.
bool AddView(View *view, ViewConfig *config, rte::Error *err)
- Since
- v4.5.0
Applicable scenarios
When you need to use a player to play a video, you can call this method to add a view to the video renderer for displaying.
Call timing
Call this method after SetCanvas.
Restrictions
Only one view can be added.
Parameters
- view
- HWND window handle value.
- config
- The configuration of View object. Currently, you need to set it to null.
- err
- The state or error information: Error.
Returns
Whether the view is added successfully:
true: The view is added.false: The view is not added.