setAutoPlay
Sets whether to enable auto-play.
public void setAutoPlay(boolean autoPlay) throws RteException
- Since
- Available since v4.4.0.
You can call this method before calling openWithUrl to set whether to enable auto-play. If not set, auto-play is enabled by default.
Timing
This method must be called before calling openWithUrl.
Parameters
- autoPlay
- Whether to enable auto-play:
- true: (default) Enable auto-play.
- false: Disable auto-play.
Exceptions
If the setting fails, the SDK throws an exception and returns the corresponding error message. You need to catch and handle the exception.