setAutoPlay
The error code.
public void setAutoPlay(boolean autoPlay) throws RteException;
- Since
- v4.5.0
Before you call openWithUrl to open the media stream, you can call this method to set whether to enable autoplay. The default setting is to enable autoplay.
Call timing
Call this method after openWithUrl.
Restrictions
None.
Parameters
- autoPlay
- Whether to enable autoplay:
true: (Default) Yes.false: No.
Exception
If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.