public void prepareMediaWithDuration(String filePathURL, int startTimeSeconds, int durationSeconds, Boolean looping) {
        mediaPlayer.prepareMedia(filePathURL, ":start-time=" + startTimeSeconds, ":stop-time=" + (startTimeSeconds + durationSeconds));
        loopingGlobal = looping;
        playingPathGlobal = filePathURL;
        isPausedGlobal = false;
        if(startTimeSeconds == 0){
            startTimeGlobal = null;
        }
        else {
            startTimeGlobal = startTimeSeconds;
        }
        if((startTimeSeconds + durationSeconds) == 0) {
            endTimeGlobal = null;
        }
        else {
            endTimeGlobal = (startTimeSeconds + durationSeconds);
        }
        startedAllreadyGlobal = false;
    }