Class RTCCodec


  • public class RTCCodec
    extends RTCStats
    RTC codec statistics
    • Constructor Detail

      • RTCCodec

        protected RTCCodec()
        Default private constructor of RTCCodec for serialization with Jackson
      • RTCCodec

        public RTCCodec​(String id,
                        StatsType type,
                        long timestampMillis,
                        long payloadType,
                        String codec,
                        long clockRate,
                        long channels,
                        String parameters)
        Create a RTCCodec
    • Method Detail

      • getPayloadType

        public long getPayloadType()
        get Payload type as used in RTP encoding.
      • setPayloadType

        public void setPayloadType​(long payloadType)
        set Payload type as used in RTP encoding.
      • getCodec

        public String getCodec()
        get e.g., video/vp8 or equivalent.
      • setCodec

        public void setCodec​(String codec)
        set e.g., video/vp8 or equivalent.
      • getClockRate

        public long getClockRate()
        get Represents the media sampling rate.
      • setClockRate

        public void setClockRate​(long clockRate)
        set Represents the media sampling rate.
      • getChannels

        public long getChannels()
        get Use 2 for stereo, missing for most other cases.
      • setChannels

        public void setChannels​(long channels)
        set Use 2 for stereo, missing for most other cases.
      • getParameters

        public String getParameters()
        get From the SDP description line.
      • setParameters

        public void setParameters​(String parameters)
        set From the SDP description line.