public static interface JetPlayer.OnJetEventListener
android.media.JetPlayer.OnJetEventListener |
JET引擎生成事件时处理通知。
Public methods |
|
---|---|
abstract void |
onJetEvent(JetPlayer player, short segment, byte track, byte channel, byte controller, byte value) 回调JET引擎生成新事件的时间。 |
abstract void |
onJetNumQueuedSegmentUpdate(JetPlayer player, int nbSegments) 当JET的排队段数更新时回调。 |
abstract void |
onJetPauseUpdate(JetPlayer player, int paused) 当JET暂停状态更新时回调。 |
abstract void |
onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount) 当JET当前正在播放的片段的用户ID被更新时回调。 |
void onJetEvent (JetPlayer player, short segment, byte track, byte channel, byte controller, byte value)
回调JET引擎生成新事件的时间。
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 |
void onJetNumQueuedSegmentUpdate (JetPlayer player, int nbSegments)
当JET的排队段数更新时回调。
Parameters | |
---|---|
player |
JetPlayer : the JET player the status update is coming from |
nbSegments |
int : the number of segments in the JET queue |
void onJetPauseUpdate (JetPlayer player, int paused)
当JET暂停状态更新时回调。
Parameters | |
---|---|
player |
JetPlayer : the JET player the status update is coming from |
paused |
int : indicates whether JET is paused (1) or not (0) |
void onJetUserIdUpdate (JetPlayer player, int userId, int repeatCount)
当JET当前正在播放的片段的用户ID被更新时回调。
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) |