public static interface Player.OnRepeatListener
限定符和类型 | 方法和说明 |
---|---|
void |
onRepeat(MusicItem musicItem,
long repeatTime)
当播放器播放模式为
PlayMode.LOOP 单曲循环,且歌曲播放完毕,准备开始下次循环播放时会回调该方法。 |
void onRepeat(@NonNull MusicItem musicItem, long repeatTime)
PlayMode.LOOP
单曲循环,且歌曲播放完毕,准备开始下次循环播放时会回调该方法。musicItem
- 循环播放的歌曲。repeatTime
- 歌曲再次开始播放的时间(这个时间是 SystemClock.elapsedRealtime()
)。