|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 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 |
|---|
static final String PROCESSOR_REALIZED
static final String PROCESSING_STARTED
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.
static final String PROCESSING_STOPPED
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.
static final String PROCESSING_ABORTED
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.
static final String PROCESSING_COMPLETED
MediaProcessor has moved into UNREALIZED state. eventData is a Boolean that
indicates whether the result was written successfully to the
output stream or not.
static final String PROCESSING_ERROR
MediaProcessor has moved into REALIZED state. eventData is a String that
indicates the error message
| Method Detail |
|---|
void mediaProcessorUpdate(MediaProcessor processor,
String event,
Object eventData)
processor - the MediaProcessor which generated the eventevent - the generated eventeventData - the associated event data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal