Search in sources :

Example 1 with QariItem

use of com.quran.labs.androidquran.common.audio.QariItem in project quran_android by quran.

the class PagerActivity method playFromAyah.

public void playFromAyah(SuraAyah start, SuraAyah end, int page, int verseRepeat, int rangeRepeat, boolean enforceRange) {
    final SuraAyah ending = end != null ? end : audioUtils.getLastAyahToPlay(start, page, quranSettings.getPreferredDownloadAmount(), isDualPageVisible());
    if (ending != null) {
        Timber.d("playFromAyah - " + start + ", ending: " + ending + " - original: " + end + " -- " + quranSettings.getPreferredDownloadAmount());
        final QariItem item = audioStatusBar.getAudioInfo();
        final boolean shouldStream = quranSettings.shouldStream();
        audioPresenter.play(start, ending, item, verseRepeat, rangeRepeat, enforceRange, shouldStream);
    }
}
Also used : QariItem(com.quran.labs.androidquran.common.audio.QariItem) SuraAyah(com.quran.data.model.SuraAyah)

Aggregations

SuraAyah (com.quran.data.model.SuraAyah)1 QariItem (com.quran.labs.androidquran.common.audio.QariItem)1