play
Plays a URL resource.
public void play() throws RteException
- Since
- Available since v4.4.0.
If you have disabled autoplay, you can call this method to start playback after successfully opening an online media stream using openWithUrl.
Note: This method currently supports only URLs prefixed with
rte://.Timing
Call this method only after receiving the onStateChanged callback with status OPEN_COMPLETED.
Exceptions
When the method call fails, the SDK throws an RteException containing the corresponding error information. You need to catch and handle the exception.