org.jboss.media.engine.audio
Class RtpAudioMediaPublisher

java.lang.Object
  extended byorg.jboss.media.engine.MediaPublisher (src) 
      extended byorg.jboss.media.engine.audio.RtpAudioMediaPublisher

public class RtpAudioMediaPublisher
extends MediaPublisher (src)


Field Summary
protected  AudioGenericPluginSupport (src) m_plugin
           
protected  Processor m_processor
           
protected  DataSink m_rtpTransmitter
           
 
Fields inherited from class org.jboss.media.engine.MediaPublisher (src)
log
 
Constructor Summary
RtpAudioMediaPublisher()
           
 
Method Summary
 void addPluginGraph(MediaPluginGraph (src)  pg)
          Stops publication of the current media
 int getBitRate()
          Returns the bitRate.
 int getChannels()
           
 java.lang.String getEncoding()
          Returns the encoding.
 int getResolution()
          Returns the resolution.
 void publish()
          Publishes the processed media using a the specified protocol server
 void setBitRate(int bitRate)
          Sets the bitRate.
 void setChannels(int channels)
           
 void setEncoding(java.lang.String encoding)
          Sets the encoding.
 void setResolution(int resolution)
          Sets the resolution.
 void stop()
          Stops publication of the current media
 
Methods inherited from class org.jboss.media.engine.MediaPublisher (src)
getContext, getFileName, getHost, getName, getPort, setContext, setFileName, setHost, setName, setPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_processor

protected Processor m_processor

m_rtpTransmitter

protected DataSink m_rtpTransmitter

m_plugin

protected AudioGenericPluginSupport (src)  m_plugin
Constructor Detail

RtpAudioMediaPublisher

public RtpAudioMediaPublisher()
Method Detail

getBitRate

public int getBitRate()
Returns the bitRate.

Returns:
int

getEncoding

public java.lang.String getEncoding()
Returns the encoding.

Returns:
String

setBitRate

public void setBitRate(int bitRate)
Sets the bitRate.

Parameters:
bitRate - The bitRate to set

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding.

Parameters:
encoding - The encoding to set

getResolution

public int getResolution()
Returns the resolution.

Returns:
int

setResolution

public void setResolution(int resolution)
Sets the resolution.

Parameters:
resolution - The resolution to set

getChannels

public int getChannels()
Returns:

setChannels

public void setChannels(int channels)

publish

public void publish()
             throws NoProcessorException,
                    java.net.MalformedURLException,
                    java.io.IOException,
                    NoDataSinkException
Description copied from class: MediaPublisher (src)
Publishes the processed media using a the specified protocol server

Specified by:
publish in class MediaPublisher (src)
Throws:
NoProcessorException
java.net.MalformedURLException
java.io.IOException
NoDataSinkException

stop

public void stop()
Description copied from class: MediaPublisher (src)
Stops publication of the current media

Specified by:
stop in class MediaPublisher (src)

addPluginGraph

public void addPluginGraph(MediaPluginGraph (src)  pg)
Description copied from class: MediaPublisher (src)
Stops publication of the current media

Specified by:
addPluginGraph in class MediaPublisher (src)