|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.neomedia.AbstractMediaStream
public abstract class AbstractMediaStream
Abstract base implementation of MediaStream to ease the implementation of the interface.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.neomedia.MediaStream |
|---|
PNAME_LOCAL_SSRC, PNAME_REMOTE_SSRC |
| Constructor Summary | |
|---|---|
AbstractMediaStream()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangelistener to this stream which is to be notified upon property changes such as a SSRC ID which becomes known. |
protected void |
firePropertyChange(String property,
Object oldValue,
Object newValue)
Fires a new PropertyChangeEvent to the PropertyChangeListeners registered with this instance in order to notify about a change in the value of a specific property which had its old value modified to a specific new value. |
String |
getName()
Returns the name of this stream or null if no name has been set. |
static boolean |
matches(MediaFormat format,
MediaType mediaType,
String encoding,
double clockRate,
int channels)
Determines whether a specific MediaFormat has specific values for its properties mediaType, encoding, clockRate and channels for MediaFormats with mediaType equal to MediaType.AUDIO. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified PropertyChangeListener from this stream so that it won't receive further property change events. |
void |
setName(String streamName)
Sets the name of this stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.neomedia.MediaStream |
|---|
addDynamicRTPPayloadType, addRTPExtension, close, getActiveRTPExtensions, getDevice, getDirection, getDynamicRTPPayloadTypes, getFormat, getLocalSourceID, getRemoteControlAddress, getRemoteDataAddress, getRemoteSourceID, getTarget, getZrtpControl, isMute, isStarted, setConnector, setDevice, setDirection, setFormat, setMute, setTarget, start, stop |
| Constructor Detail |
|---|
public AbstractMediaStream()
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface MediaStreamlistener - the PropertyChangeListener to register for
PropertyChangeEventsMediaStream.addPropertyChangeListener(PropertyChangeListener)
protected void firePropertyChange(String property,
Object oldValue,
Object newValue)
property - the name of the property of this instance which had its
value changedoldValue - the value of the property with the specified name before
the changenewValue - the value of the property with the specified name after
the change
public static boolean matches(MediaFormat format,
MediaType mediaType,
String encoding,
double clockRate,
int channels)
MediaType.AUDIO.
format - the MediaFormat whose properties we'd like to
examinemediaType - the type we expect MediaFormat to haveencoding - the encoding we are looking for.clockRate - the clock rate that we'd like the format to have.channels - the number of channels that expect to find in this format
public String getName()
getName in interface MediaStreampublic void setName(String streamName)
setName in interface MediaStreamstreamName - the name of this stream or null if no name has
been set.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface MediaStreamlistener - the PropertyChangeListener to removeMediaStream.removePropertyChangeListener(PropertyChangeListener)
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||