|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlaylistProvider
Field Summary | |
---|---|
static java.lang.String |
SPECIAL_END
SadaqAllah... |
static java.lang.String |
SPECIAL_PRESTART
A'oodho billah... |
static java.lang.String |
SPECIAL_START
Bismillah... |
Method Summary | |
---|---|
AudioData |
getAudioData()
|
int |
getItem(int sura,
int aya)
Playlists can be in two modes: `sura' or `collection' mode. |
int |
getSpecialItem(java.lang.String name)
This method is to lookup some special audio file index in the playlist. |
java.lang.String |
providePlaylist()
Provides playlist file path. |
Field Detail |
---|
static final java.lang.String SPECIAL_PRESTART
static final java.lang.String SPECIAL_START
static final java.lang.String SPECIAL_END
Method Detail |
---|
java.lang.String providePlaylist() throws PlaylistProvisionException
PlaylistProvisionException
int getItem(int sura, int aya)
return aya - 1;
, regardless of sura/aya number, since in sura mode every sura has a
corresponding playlist in which each playling item (counted from 0) is mapped exactly to its corresponding aya
(counted from 1).
sura
- sura number in which corresponding aya should be returned as a playlist item. This parameter is 1-based.aya
- aya number to be resolved to an item. This parameter is 1-based.
AudioData getAudioData()
AudioData
object for the playlistint getSpecialItem(java.lang.String name)
name
- name of the special item (bismillah for example is SPECIAL_START
)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |