Package tvi.webrtc

Class RTCStats


  • public class RTCStats
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      RTCStats​(long timestampUs, java.lang.String type, java.lang.String id, java.util.Map<java.lang.String,​java.lang.Object> members)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      java.util.Map<java.lang.String,​java.lang.Object> getMembers()
      Returns map of member names to values.
      double getTimestampUs()  
      java.lang.String getType()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RTCStats

        public RTCStats​(long timestampUs,
                        java.lang.String type,
                        java.lang.String id,
                        java.util.Map<java.lang.String,​java.lang.Object> members)
    • Method Detail

      • getTimestampUs

        public double getTimestampUs()
      • getType

        public java.lang.String getType()
      • getId

        public java.lang.String getId()
      • getMembers

        public java.util.Map<java.lang.String,​java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object