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);
}
}