Package org.jitsi.impl.neomedia.rtp
Class MediaStreamTrackDesc
- java.lang.Object
-
- org.jitsi.impl.neomedia.rtp.MediaStreamTrackDesc
-
public class MediaStreamTrackDesc extends Object
Represents a collection ofRTPEncodingDescs that encode the same media source. This specific implementation provides webrtc simulcast stream suspension detection.- Author:
- George Politis
-
-
Constructor Summary
Constructors Constructor Description MediaStreamTrackDesc(MediaStreamTrackReceiver mediaStreamTrackReceiver, RTPEncodingDesc[] rtpEncodings)Ctor.MediaStreamTrackDesc(MediaStreamTrackReceiver mediaStreamTrackReceiver, RTPEncodingDesc[] rtpEncodings, String owner)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBps(int idx)Gets the last "stable" bitrate (in bps) of the encoding of the specified index.MediaStreamTrackReceivergetMediaStreamTrackReceiver()Gets theMediaStreamTrackReceiverthat receives this instance.org.jitsi.utils.MediaTypegetMediaType()StringgetOwner()RTPEncodingDesc[]getRTPEncodings()Returns an array of all theRTPEncodingDescs for this instance, in subjective quality ascending order.booleanmatches(long ssrc)FIXME: this should probably check whether the specified SSRC is part of this track (i.e.StringtoString()
-
-
-
Constructor Detail
-
MediaStreamTrackDesc
public MediaStreamTrackDesc(MediaStreamTrackReceiver mediaStreamTrackReceiver, RTPEncodingDesc[] rtpEncodings)
Ctor.- Parameters:
mediaStreamTrackReceiver- TheMediaStreamTrackReceiverthat receives this instance.rtpEncodings- TheRTPEncodingDescs that this instance possesses.
-
MediaStreamTrackDesc
public MediaStreamTrackDesc(MediaStreamTrackReceiver mediaStreamTrackReceiver, RTPEncodingDesc[] rtpEncodings, String owner)
Ctor.- Parameters:
mediaStreamTrackReceiver- TheMediaStreamTrackReceiverthat receives this instance.rtpEncodings- TheRTPEncodingDescs that this instance possesses.
-
-
Method Detail
-
getOwner
public String getOwner()
- Returns:
- the identifier of the owner of this track.
-
getMediaType
public org.jitsi.utils.MediaType getMediaType()
- Returns:
- the
MediaTypeof thisMediaStreamTrackDesc.
-
getRTPEncodings
public RTPEncodingDesc[] getRTPEncodings()
Returns an array of all theRTPEncodingDescs for this instance, in subjective quality ascending order.- Returns:
- an array of all the
RTPEncodingDescs for this instance, in subjective quality ascending order.
-
getMediaStreamTrackReceiver
public MediaStreamTrackReceiver getMediaStreamTrackReceiver()
Gets theMediaStreamTrackReceiverthat receives this instance.- Returns:
- The
MediaStreamTrackReceiverthat receives this instance.
-
getBps
public long getBps(int idx)
Gets the last "stable" bitrate (in bps) of the encoding of the specified index. The "stable" bitrate is measured on every new frame and with a 5000ms window.- Returns:
- the last "stable" bitrate (bps) of the encoding at the specified index.
-
matches
public boolean matches(long ssrc)
FIXME: this should probably check whether the specified SSRC is part of this track (i.e. check all encodings and include secondary SSRCs).- Parameters:
ssrc- the SSRC to match.- Returns:
trueif the specifiedssrcis the primary SSRC for this track.
-
-