play
Plays a URL.
public void play() throws RteException;
- Since
- v4.5.0
If you have disabled autoplay, when you successfully open a live stream through a URL by calling openWithUrl, you can call this method to play the stream.
Call timing
Call this method after you receive the onStateChanged callback reporting the OPEN_COMPLETED state.
Restrictions
This method currently only supports playing URLs with the rte:// prefix.
Exception
If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.