initMediaEngine

Initializes the RTE engine.

public void initMediaEngine(AsyncCallback callBack) throws RteException;
Since
v4.5.0

This method is asynchronous, which means that the result of initialization is returned through a callback.

Call timing

Call this method after the intializing the RTE object and setting the App ID.

Restrictions

None.

Parameters

callback
An asynchronous callback, which is used to return the initialization result. See AsyncCallback.
The error information during initialization: Error. When initializing the RTE engine using initMediaEngine, if errors that can be instantly detected occur, such as an invalid parameter or insufficient resource, the SDK synchronizes the error information in this parameter.

Exception

If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.