The get()
method of the RTCStatsReport
interface returns a specified element from an RTCStatsReport
.
Elements in the RTCStatsReport
are identified by unique id
values, which represent the monitored statistics objects from which the statistics are derived. The element returned will be an instance of one of the statistics dictionary objects, and it will contain statistics for the object with the given id
. The fetched value is a reference to the statistics dictionary, and any change made to that object will effectively modify it inside the RTCStatsReport
object.
The method is otherwise the same as Map.prototype.get()
.