In neomedia, adds MediaStream#setMute(boolean) and #isMute(). These two still do nothing for video but will in a subsequent commit.

cusax-fix
Lyubomir Marinov 17 years ago
parent 6bded413ed
commit 0708018d7f

@ -498,6 +498,22 @@ private RTPManager getRTPManager()
return rtpManager;
}
/**
* Determines whether this <tt>MediaStream</tt> is set to transmit "silence"
* instead of the media being fed from its <tt>MediaDevice</tt>. "Silence"
* for video is understood as video data which is not the captured video
* data and may represent, for example, a black image.
*
* @return <tt>true</tt> if this <tt>MediaStream</tt> is set to transmit
* "silence" instead of the media fed from its <tt>MediaDevice</tt>;
* <tt>false</tt>, otherwise
* @see MediaStream#isMute()
*/
public boolean isMute()
{
return false;
}
/**
* Determines whether {@link #start()} has been called on this
* <tt>MediaStream</tt> without {@link #stop()} or {@link #close()}
@ -661,6 +677,22 @@ public void setFormat(MediaFormat format)
getDeviceSession().setFormat(format);
}
/**
* Causes this <tt>MediaStream</tt> to stop transmitting the media being fed
* from this stream's <tt>MediaDevice</tt> and transmit "silence" instead.
* "Silence" for video is understood as video data which is not the captured
* video data and may represent, for example, a black image.
*
* @param mute <tt>true</tt> to have this <tt>MediaStream</tt> transmit
* "silence" instead of the actual media data that it captures from its
* <tt>MediaDevice</tt>; <tt>false</tt> to transmit actual media data
* captured from the <tt>MediaDevice</tt> of this <tt>MediaStream</tt>
* @see MediaStream#setMute(boolean)
*/
public void setMute(boolean mute)
{
}
/**
* Sets the target of this <tt>MediaStream</tt> to which it is to send and
* from which it is to receive data (e.g. RTP) and control data (e.g. RTCP).

@ -71,25 +71,4 @@ public interface AudioMediaStream
* @param listener the listener that we'd like to unregister
*/
public void removeDTMFListener(DTMFListener listener);
/**
* Causes this <tt>AudioMediaStream</tt> to stop transmitting the audio
* being fed from this stream's <tt>MediaDevice</tt> and transmit silence
* instead.
*
* @param mute <tt>true</tt> if we are to start transmitting silence and
* <tt>false</tt> if we are to use media from this stream's
* <tt>MediaDevice</tt> again.
*/
public void setMute(boolean mute);
/**
* Determines whether this <tt>AudioMediaStream</tt> is set to transmit
* silence instead of the audio being fed from its <tt>MediaDevice</tt>.
*
* @return <tt>true</tt> if this <tt>AudioMediaStream</tt> is set to
* transmit silence instead of the audio fed from its <tt>MediaDevice</tt>;
* <tt>false</tt>, otherwise
*/
public boolean isMute();
}

@ -227,4 +227,28 @@ public void addDynamicRTPPayloadType(
* afterwards
*/
public boolean isStarted();
/**
* Causes this <tt>MediaStream</tt> to stop transmitting the media being fed
* from this stream's <tt>MediaDevice</tt> and transmit "silence" instead.
* "Silence" for video is understood as video data which is not the captured
* video data and may represent, for example, a black image.
*
* @param mute <tt>true</tt> if we are to start transmitting "silence" and
* <tt>false</tt> if we are to use media from this stream's
* <tt>MediaDevice</tt> again.
*/
public void setMute(boolean mute);
/**
* Determines whether this <tt>MediaStream</tt> is set to transmit "silence"
* instead of the media being fed from its <tt>MediaDevice</tt>. "Silence"
* for video is understood as video data which is not the captured video
* data and may represent, for example, a black image.
*
* @return <tt>true</tt> if this <tt>MediaStream</tt> is set to transmit
* "silence" instead of the media fed from its <tt>MediaDevice</tt>;
* <tt>false</tt>, otherwise
*/
public boolean isMute();
}

Loading…
Cancel
Save