org.mobicents.media.server.impl.resource
Class Demultiplexer
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSource
org.mobicents.media.server.impl.AbstractSourceSet
org.mobicents.media.server.impl.resource.Demultiplexer
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, org.mobicents.media.Component, org.mobicents.media.Inlet, org.mobicents.media.MediaSource
public class Demultiplexer
- extends AbstractSourceSet
- implements org.mobicents.media.Inlet
A Demultiplexer is a media processing component that takes an interleaved
media stream as input, extracts the individual tracks from the stream, and
outputs the resulting tracks. It has one input and multiple outputs.
- Author:
- Oleg Kulikov
- See Also:
- Serialized Form
|
Constructor Summary |
Demultiplexer(java.lang.String name)
Creates new instance of the demultiplexer. |
| Methods inherited from class org.mobicents.media.server.impl.AbstractSource |
afterStop, beforeStart, completed, connect, disconnect, failed, getBytesTransmitted, getFrameCount, getFrameRate, getPacketsTransmitted, getPeriod, getSupportedFormatList, getSyncSource, isConnected, isStarted, resetStats, run, setFrameRate, setPeriod, setPreffered, setSyncSource, started, stopped |
| Methods inherited from class org.mobicents.media.server.impl.BaseComponent |
addListener, getConnection, getEndpoint, getFormat, getId, getName, getResourceType, removeListener, sendEvent, setResourceType, 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, getId, getName, removeListener, resetStats |
Demultiplexer
public Demultiplexer(java.lang.String name)
- Creates new instance of the demultiplexer.
- Parameters:
name -
getInput
public AbstractSink getInput()
- (Non Java-doc).
- Specified by:
getInput in interface org.mobicents.media.Inlet
- See Also:
Inlet.getInput().
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
createSource
public AbstractSource createSource(org.mobicents.media.MediaSink otherParty)
- Specified by:
createSource in class AbstractSourceSet
setConnection
public void setConnection(org.mobicents.media.server.spi.Connection connection)
- Specified by:
setConnection in interface org.mobicents.media.Component- Overrides:
setConnection in class BaseComponent
setEndpoint
public void setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
- Specified by:
setEndpoint in interface org.mobicents.media.Component- Overrides:
setEndpoint in class BaseComponent
getFormats
public org.mobicents.media.Format[] getFormats()
- (Non Java-doc).
- Specified by:
getFormats in interface org.mobicents.media.MediaSource
- See Also:
MediaSource.getFormats().
start
public void start()
- Description copied from class:
AbstractSource
- (Non Java-doc).
- Specified by:
start in interface org.mobicents.media.Component- Overrides:
start in class AbstractSourceSet
- See Also:
Component.start().
stop
public void stop()
- Description copied from class:
AbstractSource
- (Non Java-doc).
- Specified by:
stop in interface org.mobicents.media.Component- Overrides:
stop in class AbstractSource
- See Also:
Component.stop().
evolve
public void evolve(org.mobicents.media.Buffer buffer,
long timestamp,
long sequenceNumber)
- Description copied from class:
AbstractSource
- This method must be overriden by concrete media source. The media have to fill buffer with media data and
attributes.
- Specified by:
evolve in class AbstractSource
- Parameters:
buffer - the buffer object for media.sequenceNumber - the number of timer ticks from the begining.
destroySource
public void destroySource(AbstractSource source)
- Specified by:
destroySource in class AbstractSourceSet
Copyright © 2010. All Rights Reserved.