Requests the cue point history from Triton's servers.
More...
|
|
| CuePointHistory () |
| | Constructor.
|
| |
|
void | clearCueTypeFilter () |
| | Clears the CuePoint.CUE_TYPE filter.
|
| |
|
void | request () |
| | Executes a CuePoint history request.
|
| |
|
void | setCueTypeFilter (List< String > cueTypes) |
| | Sets a CuePoint.CUE_TYPE filter for the next request.
|
| |
|
void | setCueTypeFilter (String cueType) |
| | Sets a CuePoint.CUE_TYPE filter for the next request.
|
| |
|
void | setListener (CuePointHistoryListener listener) |
| | Sets the result listener.
|
| |
| void | setMaxItems (int maxItems) |
| | Sets the maximum number of CuePoint to retrieve. More...
|
| |
|
void | setMount (String mount) |
| | Sets the station's mount.
|
| |
|
| static String | debugErrorToStr (int errorCode) |
| | Utility method to convert an error code to a debug string. More...
|
| |
|
|
static final int | ERROR_INVALID_MOUNT = 6001 |
| | Invalid mount.
|
| |
|
static final int | ERROR_NETWORK = 6004 |
| | Network error.
|
| |
|
static final int | ERROR_UNKNOWN = 6002 |
| | Unknown error.
|
| |
|
static final int | ERROR_XML_PARSING = 6003 |
| | XML parsing error.
|
| |
Requests the cue point history from Triton's servers.
- Restrictions
- The same history will be returned for request faster than 15 seconds.
- The data provided by this class is not sync with the stream.
- Some streams are configured to return only CuePoint.CUE_TYPE_VALUE_TRACK.
- Example
{
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
public void onCuePointHistoryReceived(
CuePointHistory src, List<> cuePoints) {
}
}
}
Requests the cue point history from Triton's servers.
Definition: CuePointHistory.java:72
void setListener(CuePointHistoryListener listener)
Sets the result listener.
Definition: CuePointHistory.java:334
void setMaxItems(int maxItems)
Sets the maximum number of CuePoint to retrieve.
Definition: CuePointHistory.java:238
void request()
Executes a CuePoint history request.
Definition: CuePointHistory.java:141
void setCueTypeFilter(String cueType)
Sets a CuePoint.CUE_TYPE filter for the next request.
Definition: CuePointHistory.java:247
CuePointHistory()
Constructor.
Definition: CuePointHistory.java:133
void setMount(String mount)
Sets the station's mount.
Definition: CuePointHistory.java:206
Cue point keys.
Definition: CuePoint.java:13
static final String CUE_TYPE_VALUE_TRACK
Music track/song.
Definition: CuePoint.java:23
Callback for receiving the CuePoint history.
Definition: CuePointHistory.java:76
◆ debugErrorToStr()
| static String com.tritondigital.player.CuePointHistory.debugErrorToStr |
( |
int |
errorCode | ) |
|
|
static |
Utility method to convert an error code to a debug string.
- Note
- To be used only for debugging purpose.
◆ setMaxItems()
| void com.tritondigital.player.CuePointHistory.setMaxItems |
( |
int |
maxItems | ) |
|
Sets the maximum number of CuePoint to retrieve.
Requesting lots of items can slow down your request.
- Parameters
-
| maxItems | Maximum number of items (0 for all) |