org.mobicents.media.server.impl.resource.cnf
Class Splitter

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.cnf.Splitter
All Implemented Interfaces:
java.io.Serializable, org.mobicents.media.Component, org.mobicents.media.Inlet, org.mobicents.media.MediaSource, org.mobicents.media.server.spi.clock.Task

public class Splitter
extends AbstractSourceSet
implements org.mobicents.media.Inlet

Splits the media stream and distributes between several destinations, 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
logger, otherParty
 
Fields inherited from class org.mobicents.media.server.impl.BaseComponent
format
 
Constructor Summary
Splitter(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 timestamp)
          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)
          (Non Java-doc.)
 void setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
          (Non Java-doc.)
 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, cancel, completed, connect, disconnect, failed, getBytesTransmitted, getDuration, getInterface, getMediaTime, getPacketsTransmitted, getSupportedFormatList, isActive, isConnected, isStarted, perform, resetStats, setDuration, setMediaTime, setPreffered, setStarted, started, stopped
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getFormat, getId, getName, removeListener, sendEvent, 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
 

Constructor Detail

Splitter

public Splitter(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)
Description copied from class: BaseComponent
(Non Java-doc.)

Specified by:
setConnection in interface org.mobicents.media.Component
Overrides:
setConnection in class BaseComponent
See Also:
org.mobicents.media.Component#setConnection().

setEndpoint

public void setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
Description copied from class: BaseComponent
(Non Java-doc.)

Specified by:
setEndpoint in interface org.mobicents.media.Component
Overrides:
setEndpoint in class BaseComponent
See Also:
Component.setEndpoint(Endpoint).

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.MediaSource
Overrides:
start in class AbstractSourceSet
See Also:
MediaSource.start().

stop

public void stop()
Description copied from class: AbstractSource
(Non Java-doc).

Specified by:
stop in interface org.mobicents.media.MediaSource
Overrides:
stop in class AbstractSource
See Also:
MediaSource.stop().

evolve

public void evolve(org.mobicents.media.Buffer buffer,
                   long timestamp)
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.

destroySource

public void destroySource(AbstractSource source)
Specified by:
destroySource in class AbstractSourceSet


Copyright © 2010. All Rights Reserved.