JetPlayer


public class JetPlayer
extends Object

java.lang.Object
   ↳ android.media.JetPlayer


JetPlayer provides access to JET content playback and control.

Please refer to the JET Creator User Manual for a presentation of the JET interactive music concept and how to use the JetCreator tool to create content to be player by JetPlayer.

Use of the JetPlayer class is based around the playback of a number of JET segments sequentially added to a playback FIFO queue. The rendering of the MIDI content stored in each segment can be dynamically affected by two mechanisms:

  • Tracks in a segment can be muted or unmuted at any moment, individually or through a mask (to change the mute state of multiple tracks at once).
  • Parts of tracks in a segment can be played at predefined points in the segment, in order to maintain synchronization with the other tracks in the segment. This is achieved through the notion of "clips", which can be triggered at any time, but that will play only at the right time, as authored in the corresponding JET file.

As a result of the rendering and playback of the JET segments, the user of the JetPlayer instance can receive notifications from the JET engine relative to:

  • Playback state
  • Number of segments left to play in the queue
  • Application controller events (CC80-83) to mark points in the MIDI segments

Use getJetPlayer() to construct a JetPlayer instance. JetPlayer is a singleton class.

Summary

Nested classes

interface JetPlayer.OnJetEventListener

Handles the notification when the JET engine generates an event. 

Public methods

boolean clearQueue()