org.mobicents.media.server.impl.dsp
Class Processor

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.dsp.Processor
All Implemented Interfaces:
java.io.Serializable, org.mobicents.media.Component, org.mobicents.media.Inlet, org.mobicents.media.Outlet, org.mobicents.media.server.spi.dsp.SignalingProcessor

public class Processor
extends BaseComponent
implements org.mobicents.media.server.spi.dsp.SignalingProcessor

Implements DSP features. Processor has input and output and is used to perform required transcoding if needed for packets followed from source to consumer. Processor is transparent for packets with format acceptable by consumer by default.

Author:
Oleg Kulikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.mobicents.media.Component
AUDIO_PLAYER, AUDIO_RECORDER, DTMF_DETECTOR, DTMF_GENERATOR
 
Fields inherited from interface org.mobicents.media.Component
AUDIO_PLAYER, AUDIO_RECORDER, DTMF_DETECTOR, DTMF_GENERATOR
 
Fields inherited from interface org.mobicents.media.Component
AUDIO_PLAYER, AUDIO_RECORDER, DTMF_DETECTOR, DTMF_GENERATOR
 
Constructor Summary
Processor(java.lang.String name)
           
 
Method Summary
protected  void add(org.mobicents.media.server.spi.dsp.Codec codec)
           
 void configure(org.mobicents.media.Format[] inputFormats, org.mobicents.media.Format[] outputFormats)
          (Non Java-doc.)
 org.mobicents.media.MediaSink getInput()
          Gets the input for original media
 org.mobicents.media.MediaSource getOutput()
          Gets the output stream with transcoded media.
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, sendEvent, setConnection, setEndpoint, setResourceType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, setConnection, setEndpoint, setResourceType
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, setConnection, setEndpoint, setResourceType
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, setConnection, setEndpoint, setResourceType
 

Constructor Detail

Processor

public Processor(java.lang.String name)
Method Detail

add

protected void add(org.mobicents.media.server.spi.dsp.Codec codec)

getInput

public org.mobicents.media.MediaSink getInput()
Gets the input for original media

Specified by:
getInput in interface org.mobicents.media.Inlet
Returns:
media handler for input media.

getOutput

public org.mobicents.media.MediaSource getOutput()
Gets the output stream with transcoded media.

Specified by:
getOutput in interface org.mobicents.media.Outlet
Returns:
media stream.

configure

public void configure(org.mobicents.media.Format[] inputFormats,
                      org.mobicents.media.Format[] outputFormats)
(Non Java-doc.)

Specified by:
configure in interface org.mobicents.media.server.spi.dsp.SignalingProcessor
See Also:
org.mobicents.media.server.spi.dsp.SignalingProcessor.configure(Format[], Format[]).


Copyright © 2009. All Rights Reserved.