javax.microedition.amms
Interface MediaProcessorListener


public interface MediaProcessorListener

MediaProcessorListener is an interface that may be used to receive events generated by a MediaProcessor. To use this interface, instantiate an object that implements this interface and pass it to the addMediaProcessorListener method of the MediaProcessor.

Since:
BlackBerry API 5.0.0

Field Summary
static String PROCESSING_ABORTED
          Posted to indicate that the processing has been aborted and the MediaProcessor has moved into UNREALIZED state.
static String PROCESSING_COMPLETED
          Posted to indicate that the processing has been completed and that the MediaProcessor has moved into UNREALIZED state.
static String PROCESSING_ERROR
          Posted to indicate that the processing was interrupted because of some error and the MediaProcessor has moved into REALIZED state.
static String PROCESSING_STARTED
          Posted to indicate that the MediaProcessor has moved into STARTED state and is processing input.
static String PROCESSING_STOPPED
          Posted to indicate that the MediaProcessor has moved into STOPPED state and paused processing.
static String PROCESSOR_REALIZED
          Posted to indicate that the processor has been moved from UNREALIZED into REALIZED state.
 
Method Summary
 void mediaProcessorUpdate(MediaProcessor processor, String event, Object eventData)
          This method is called to deliver an event to a registered listener when a MediaProcessor event is observed.
 



Field Detail

PROCESSOR_REALIZED

static final String PROCESSOR_REALIZED
Posted to indicate that the processor has been moved from UNREALIZED into REALIZED state.

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0

PROCESSING_STARTED

static final String PROCESSING_STARTED
Posted to indicate that the MediaProcessor has moved into STARTED state and is processing input. eventData is an Integer ranged 0 to 1000 or MediaProcessor.UNKNOWN specifying an estimated amount of work that has been done in tenths of a percent.

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0

PROCESSING_STOPPED

static final String PROCESSING_STOPPED
Posted to indicate that the MediaProcessor has moved into STOPPED state and paused processing. eventData is an Integer ranged 0 to 1000 or MediaProcessor.UNKNOWN specifying an estimated amount of work that had been done in tenths of a percent.

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0

PROCESSING_ABORTED

static final String PROCESSING_ABORTED
Posted to indicate that the processing has been aborted and the MediaProcessor has moved into UNREALIZED state. eventData is an Integer ranged 0 to 1000 or MediaProcessor.UNKNOWN specifying an estimated amount of work that had been done in tenths of a percent.

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0

PROCESSING_COMPLETED

static final String PROCESSING_COMPLETED
Posted to indicate that the processing has been completed and that the MediaProcessor has moved into UNREALIZED state. eventData is a Boolean that indicates whether the result was written successfully to the output stream or not.

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0

PROCESSING_ERROR

static final String PROCESSING_ERROR
Posted to indicate that the processing was interrupted because of some error and the MediaProcessor has moved into REALIZED state. eventData is a String that indicates the error message

See Also:
Constant Field Values
Since:
BlackBerry API 5.0.0


Method Detail

mediaProcessorUpdate

void mediaProcessorUpdate(MediaProcessor processor,
                          String event,
                          Object eventData)
This method is called to deliver an event to a registered listener when a MediaProcessor event is observed.

Parameters:
processor - the MediaProcessor which generated the event
event - the generated event
eventData - the associated event data
Since:
BlackBerry API 5.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.