Android APIs
Added in API level 3
public static interface

JetPlayer.OnJetEventListener

android.media.JetPlayer.OnJetEventListener

Class Overview

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

public abstract void onJetEvent (JetPlayer player, short segment, byte track, byte channel, byte controller, byte value)

Added in API level 3

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

public abstract void onJetNumQueuedSegmentUpdate (JetPlayer player, int nbSegments)

Added in API level 3

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

public abstract void onJetPauseUpdate (JetPlayer player, int paused)

Added in API level 3

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)

public abstract void onJetUserIdUpdate (JetPlayer player, int userId, int repeatCount)

Added in API level 3

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)