setLoopCount
Sets the number of times the media file loops during playback.
public void setLoopCount(int count) throws RteException
- Since
- Available since v4.5.1.
Parameters
- count
- The number of times the media file loops:
1: Play once.2: Play twice.-1: Loop infinitely until stop is called to stop playback.
Exceptions
If the setting fails, the SDK throws an exception and returns the corresponding error message. You need to catch and handle the exception.