hp.opencall.media.ccapi
Interface ResourceEventListener


public interface ResourceEventListener

Defines the callback methods for events generated from the media group.

Due to the asynchronous nature of the Call Control API, the play, record, retrieveSignals, and sendSignals methods of the media group are non-blocking (see AsyncMediaGroup).
Therefore, the result of those methods is passed as events in the callbacks methods defined in this listener interface.

For example, the result of the play method is passed as a PlayerEvent event in a call to onPlayerEvent.

Since:
OCMP 2.0

Method Summary
 void onPlayerEvent(PlayerEvent anEvent)
          Invoked to pass the result of play()
 void onRecorderEvent(RecorderEvent anEvent)
          Invoked to pass the result of record()
 void onSignalDetectorEvent(SignalDetectorEvent anEvent)
          Invoked to pass the result of retrieveSignals()
 void onSignalGeneratorEvent(SignalGeneratorEvent anEvent)
          Invoked to pass the result of sendSignals()
 

Method Detail

onPlayerEvent

public void onPlayerEvent(PlayerEvent anEvent)
Invoked to pass the result of play()


onRecorderEvent

public void onRecorderEvent(RecorderEvent anEvent)
Invoked to pass the result of record()


onSignalDetectorEvent

public void onSignalDetectorEvent(SignalDetectorEvent anEvent)
Invoked to pass the result of retrieveSignals()


onSignalGeneratorEvent

public void onSignalGeneratorEvent(SignalGeneratorEvent anEvent)
Invoked to pass the result of sendSignals()