org.mobicents.media.server.impl.dsp
Class Processor
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
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
|
Constructor Summary |
Processor(java.lang.String name)
|
|
Method Summary |
protected void |
add(org.mobicents.media.server.spi.dsp.Codec codec)
|
void |
connect(org.mobicents.media.MediaSink sink)
|
void |
connect(org.mobicents.media.MediaSource source)
|
void |
disconnect(org.mobicents.media.MediaSink sink)
|
void |
disconnect(org.mobicents.media.MediaSource source)
|
org.mobicents.media.server.spi.dsp.Codec |
getActiveCodec()
|
org.mobicents.media.MediaSink |
getInput()
Gets the input for original media |
org.mobicents.media.MediaSource |
getOutput()
Gets the output stream with transcoded media. |
void |
start()
(Non Java-doc). |
void |
stop()
(Non Java-doc). |
| Methods inherited from class org.mobicents.media.server.impl.BaseComponent |
addListener, getConnection, getEndpoint, getFormat, getId, getInterface, getName, removeListener, resetStats, sendEvent, setConnection, setEndpoint, subset, 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, getFormat, getId, getInterface, getName, removeListener, resetStats, setConnection, setEndpoint |
Processor
public Processor(java.lang.String name)
add
protected void add(org.mobicents.media.server.spi.dsp.Codec codec)
getActiveCodec
public org.mobicents.media.server.spi.dsp.Codec getActiveCodec()
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.
connect
public void connect(org.mobicents.media.MediaSource source)
- Specified by:
connect in interface org.mobicents.media.Inlet
disconnect
public void disconnect(org.mobicents.media.MediaSource source)
- Specified by:
disconnect in interface org.mobicents.media.Inlet
connect
public void connect(org.mobicents.media.MediaSink sink)
- Specified by:
connect in interface org.mobicents.media.Outlet
disconnect
public void disconnect(org.mobicents.media.MediaSink sink)
- Specified by:
disconnect in interface org.mobicents.media.Outlet
start
public void start()
- (Non Java-doc).
- See Also:
org.mobicents.media.Component#start()
stop
public void stop()
- (Non Java-doc).
- See Also:
org.mobicents.media.Component#stop()
Copyright © 2010. All Rights Reserved.