addView
Adds a rendering view.
public void addView(View view, ViewConfig viewConfig) throws RteException
- Since
- Available since v4.4.0.
When you need to use the player to play video, you can call this method to add the view to the video renderer to display the video content.
Note: Currently, only one view is supported.
Timing
You must call this method before calling setCanvas.
Parameters
- view
SurfaceViewobject.- viewConfig
- Settings related to the view.
Exceptions
If adding the rendering view fails, the SDK throws an exception and returns the corresponding error information. You need to catch the exception and handle it accordingly.