to top
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 the JET player the event is coming from
segment 8 bit unsigned value
track 6 bit unsigned value
channel 4 bit unsigned value
controller 7 bit unsigned value
value 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 the JET player the status update is coming from
nbSegments 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 the JET player the status update is coming from
paused 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 the JET player the status update is coming from
userId the ID of the currently playing segment
repeatCount the repetition count for the segment (0 means it plays once)