void
RecorderEndpointImpl::fillStatsReport (std::map
                                       <std::string, std::shared_ptr<Stats>>
                                       &report, const GstStructure *stats, double timestamp)
{
  const GstStructure *e_stats;

  e_stats = kms_utils_get_structure_by_name (stats, KMS_MEDIA_ELEMENT_FIELD);

  if (e_stats != NULL) {
    collectEndpointStats (report, getId (), e_stats, timestamp);
  }

  UriEndpointImpl::fillStatsReport (report, stats, timestamp);
}
void
WebRtcEndpointImpl::fillStatsReport (std::map
                                     <std::string, std::shared_ptr<Stats>>
                                     &report, const GstStructure *stats, double timestamp)
{
  const GstStructure *data_stats = NULL;

  BaseRtpEndpointImpl::fillStatsReport (report, stats, timestamp);

  data_stats = kms_utils_get_structure_by_name (stats,
               KMS_DATA_SESSION_STATISTICS_FIELD);

  if (data_stats != NULL) {
    return collectRTCDataChannelStats (report, timestamp, data_stats);
  }
}