JetPlayer.OnJetEventListener
public
static
interface
JetPlayer.OnJetEventListener
android.media.JetPlayer.OnJetEventListener |
Handles the notification when the JET engine generates an event.
Summary
Public methods | |
---|---|
abstract
void
|
onJetEvent(JetPlayer player, short segment, byte track, byte channel, byte controller, byte value)
Callback for when the JET engine generates a new event. |
abstract
void
|
onJetNumQueuedSegmentUpdate(JetPlayer player, int nbSegments)
Callback for when JET's number of queued segments is updated. |
abstract
void
|
onJetPauseUpdate(JetPlayer player, int paused)
Callback for when JET pause state is updated. |
abstract
void
|
onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount)
Callback for when JET's currently playing segment's userID is updated. |
Public methods
onJetEvent
public abstract void onJetEvent (JetPlayer player, short segment, byte track, byte channel, byte controller, byte value)
Callback for when the JET engine generates a new event.
Parameters | |
---|---|
player |
JetPlayer : the JET player the event is coming from |
segment |
short : 8 bit unsigned value |
track |
byte : 6 bit unsigned value |
channel |
byte : 4 bit unsigned value |
controller |
byte : 7 bit unsigned value |
value |
byte : 7 bit unsigned value |
onJetNumQueuedSegmentUpdate
public abstract void onJetNumQueuedSegmentUpdate (JetPlayer player, int nbSegments)
Callback for when JET's number of queued segments is updated.
Parameters | |
---|---|
player |
JetPlayer : the JET player the status update is coming from |
nbSegments |
int : the number of segments in the JET queue |
onJetPauseUpdate
public abstract void onJetPauseUpdate (JetPlayer player, int paused)
Callback for when JET pause state is updated.
Parameters | |
---|---|
player |
JetPlayer : the JET player the status update is coming from |
paused |
int : indicates whether JET is paused (1) or not (0) |
onJetUserIdUpdate
public abstract void onJetUserIdUpdate (JetPlayer player, int userId, int repeatCount)
Callback for when JET's currently playing segment's userID is updated.
Parameters | |
---|---|
player |
JetPlayer : the JET player the status update is coming from |
userId |
int : the ID of the currently playing segment |
repeatCount |
int : the repetition count for the segment (0 means it plays once) |