Class MediaStreamTrackDesc


  • public class MediaStreamTrackDesc
    extends Object
    Represents a collection of RTPEncodingDescs that encode the same media source. This specific implementation provides webrtc simulcast stream suspension detection.
    Author:
    George Politis
    • Method Detail

      • getOwner

        public String getOwner()
        Returns:
        the identifier of the owner of this track.
      • getMediaType

        public org.jitsi.utils.MediaType getMediaType()
        Returns:
        the MediaType of this MediaStreamTrackDesc.
      • getRTPEncodings

        public RTPEncodingDesc[] getRTPEncodings()
        Returns an array of all the RTPEncodingDescs for this instance, in subjective quality ascending order.
        Returns:
        an array of all the RTPEncodingDescs for this instance, in subjective quality ascending order.
      • 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:
        true if the specified ssrc is the primary SSRC for this track.