Newer
Older

Lyubomir Marinov
committed
screen.getIndex(),
x - bounds.x, y - bounds.y);

Lyubomir Marinov
committed
* Removes a specific <tt>VideoListener</tt> from this
* <tt>VideoMediaStream</tt> in order to have to no longer receive
* notifications when visual/video <tt>Component</tt>s are being added and
* removed.

Lyubomir Marinov
committed
* @param listener the <tt>VideoListener</tt> to no longer be notified when
* visual/video <tt>Component</tt>s are being added or removed in this
* <tt>VideoMediaStream</tt>

Lyubomir Marinov
committed
public void removeVideoListener(VideoListener listener)

Lyubomir Marinov
committed
videoNotifierSupport.removeVideoListener(listener);

Lyubomir Marinov
committed
* Notifies this <tt>MediaStream</tt> implementation that its
* <tt>RTPConnector</tt> instance has changed from a specific old value to a
* specific new value. Allows extenders to override and perform additional
* processing after this <tt>MediaStream</tt> has changed its
* <tt>RTPConnector</tt> instance.

Lyubomir Marinov
committed
* @param oldValue the <tt>RTPConnector</tt> of this <tt>MediaStream</tt>
* implementation before it got changed to <tt>newValue</tt>
* @param newValue the current <tt>RTPConnector</tt> of this
* <tt>MediaStream</tt> which replaced <tt>oldValue</tt>
* @see MediaStreamImpl#rtpConnectorChanged(AbstractRTPConnector,
* AbstractRTPConnector)

Lyubomir Marinov
committed
protected void rtpConnectorChanged(
AbstractRTPConnector oldValue,
AbstractRTPConnector newValue)

Lyubomir Marinov
committed
super.rtpConnectorChanged(oldValue, newValue);

Lyubomir Marinov
committed
if (newValue != null)
{
MediaDeviceSession deviceSession = getDeviceSession();

Lyubomir Marinov
committed

Lyubomir Marinov
committed
if (deviceSession instanceof VideoMediaDeviceSession)
{
((VideoMediaDeviceSession) deviceSession)
.setConnector(newValue);
}
}

Lyubomir Marinov
committed
* Set local SSRC.
*
* @param ssrc source ID

Lyubomir Marinov
committed
protected void setLocalSourceID(long ssrc)

Lyubomir Marinov
committed
super.setLocalSourceID(ssrc);

Lyubomir Marinov
committed
MediaDeviceSession deviceSession = getDeviceSession();

Lyubomir Marinov
committed
if (deviceSession instanceof VideoMediaDeviceSession)
((VideoMediaDeviceSession) deviceSession).setLocalSSRC(ssrc);
}
/**
* Updates the <tt>QualityControl</tt> of this <tt>VideoMediaStream</tt>.
*
* @param advancedParams parameters of advanced attributes that may affect
* quality control
*/

Lyubomir Marinov
committed
public void updateQualityControl(Map<String, String> advancedParams)
{
for(Map.Entry<String, String> entry : advancedParams.entrySet())
{
if(entry.getKey().equals("imageattr"))
{
Dimension res[] = parseSendRecvResolution(entry.getValue());
if(res != null)
{
qualityControl.setRemoteSendMaxPreset(

Lyubomir Marinov
committed
new QualityPreset(res[0]));

Lyubomir Marinov
committed
qualityControl.setRemoteReceiveResolution(res[1]);

Lyubomir Marinov
committed
((VideoMediaDeviceSession)getDeviceSession())
.setOutputSize(outputSize);