Jul 25, 2017 · 1 min read
EventListener.onPositionDiscontinuity is called each time the playback transitions to a new window (or the same window if repeated). So, if you want to count how many times a playlist item has been played, you can do it in this method.
Note that onTracksChanged is only called when the available or selected tracks (for example, video streams of different resolutions) change. This is unrelated to the repeat modes described here.