JSR-234 1.1

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.


Field Summary
static java.lang.String PROCESSING_ABORTED
          Posted to indicate that the processing has been aborted and the MediaProcessor has moved into UNREALIZED state.
static java.lang.String PROCESSING_COMPLETED
          Posted to indicate that the processing has been completed and that the MediaProcessor has moved into UNREALIZED state.
static java.lang.String PROCESSING_ERROR
          Posted to indicate that the processing was interrupted because of some error and the MediaProcessor has moved into REALIZED state.
static java.lang.String PROCESSING_STARTED
          Posted to indicate that the MediaProcessor has moved into STARTED state and is processing input.
static java.lang.String PROCESSING_STOPPED
          Posted to indicate that the MediaProcessor has moved into STOPPED state and paused processing.
static java.lang.String PROCESSOR_REALIZED
          Posted to indicate that the processor has been moved from UNREALIZED into REALIZED state.
 
Method Summary
 void mediaProcessorUpdate(MediaProcessor processor, java.lang.String event, java.lang.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 java.lang.String PROCESSOR_REALIZED
Posted to indicate that the processor has been moved from UNREALIZED into REALIZED state.

See Also:
Constant Field Values

PROCESSING_STARTED

static final java.lang.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

PROCESSING_STOPPED

static final java.lang.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

PROCESSING_ABORTED

static final java.lang.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

PROCESSING_COMPLETED

static final java.lang.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

PROCESSING_ERROR

static final java.lang.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
Method Detail

mediaProcessorUpdate

void mediaProcessorUpdate(MediaProcessor processor,
                          java.lang.String event,
                          java.lang.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

JSR-234 1.1

Copyright © 2004-2007 Nokia Corporation. See the Copyright for details.