@Override
    public void setLooping(boolean looping) {
        int loopCount = looping ? 0 : 1;
        setOption(OPT_CATEGORY_PLAYER, "loop", loopCount);
        _setLoopCount(loopCount);
    }
Sets the player to be looping or non-looping.

@param looping whether to loop or not
dkplayer-players/ijk/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java