Package tvi.webrtc

Class RTCStats

java.lang.Object
tvi.webrtc.RTCStats

public class RTCStats extends Object
Java version of webrtc::RTCStats. Represents an RTCStats object, as described in https://w3c.github.io/webrtc-stats/. The `id`, `timestampUs` and `type` accessors have the same meaning for this class as for the RTCStats dictionary. Each RTCStatsReport produced by getStats contains multiple RTCStats objects; one for each underlying object (codec, stream, transport, etc.) that was inspected to produce the stats.
  • Constructor Details

  • Method Details

    • getTimestampUs

      public double getTimestampUs()
    • getType

      public String getType()
    • getId

      public String getId()
    • getMembers

      public Map<String,Object> getMembers()
      Returns map of member names to values. Returns as an ordered map so that the stats object can be serialized with a consistent ordering. Values will be one of the following objects: - Boolean - Integer (for 32-bit signed integers) - Long (for 32-bit unsigned and 64-bit signed integers) - BigInteger (for 64-bit unsigned integers) - Double - String - The array form of any of the above (e.g., Integer[]) - Map of String keys to BigInteger / Double values
    • toString

      public String toString()
      Overrides:
      toString in class Object