org.mobicents.media.server.impl.resource
Class Demultiplexer

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSource
          extended by org.mobicents.media.server.impl.AbstractSourceSet
              extended by 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

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.AbstractSource
otherParty
 
Constructor Summary
Demultiplexer(java.lang.String name)
          Creates new instance of the demultiplexer.
 
Method Summary
 void connect(org.mobicents.media.MediaSource source)
           
 AbstractSource createSource(org.mobicents.media.MediaSink otherParty)
           
 void destroySource(AbstractSource source)
           
 void disconnect(org.mobicents.media.MediaSource source)
           
 void evolve(org.mobicents.media.Buffer buffer, long sequenceNumber)
          This method must be overriden by concrete media source.
 org.mobicents.media.Format[] getFormats()
          (Non Java-doc).
 AbstractSink getInput()
          (Non Java-doc).
 void setConnection(org.mobicents.media.server.spi.Connection connection)
           
 void setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
           
 void start()
          (Non Java-doc).
 void stop()
          (Non Java-doc).
 
Methods inherited from class org.mobicents.media.server.impl.AbstractSourceSet
connect, disconnect, getActiveSourceCount, getStreams, isMultipleConnectionsAllowed
 
Methods inherited from class org.mobicents.media.server.impl.AbstractSource
afterStop, beforeStart, completed, connect, disconnect, failed, getBytesTransmitted, getPacketsTransmitted, getSupportedFormatList, getSyncSource, isConnected, isStarted, resetStats, run, setSyncSource, started, stopped
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, sendEvent, 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, removeListener, resetStats
 

Constructor Detail

Demultiplexer

public Demultiplexer(java.lang.String name)
Creates new instance of the demultiplexer.

Parameters:
name -
Method Detail

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 AbstractSource
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 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 © 2009. All Rights Reserved.