Play
Plays a URL.
bool Play(Error* err);
- 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 kRtePlayerStateOpenCompleted state.
Restrictions
This method currently only supports playing URLs with the rte:// prefix.
Parameters
- err
- The state or error information: Error.
Returns
Whether the playing is successful:
true: The playing succeeds.false: The playing fails.