[webrtc-stats] Pull Request: Move audio levels to "media-source" and "receiver"

henbos has just submitted a new pull request for https://github.com/w3c/webrtc-stats:

== Move audio levels to "media-source" and "receiver" ==
Fixes #449.

Before this PR:
- audioLevel, totalAudioEnergy and totalSamplesDuration were present in both "sender" and "receiver" dictionaries.

After this PR:
- audioLevel, totalAudioEnergy and totalSamplesDuration are present in "receiver" and "media-source" instead.

The difference is even if we are not sending samples (we are not connected), the "media-source" can provide energy levels based on samples produced by the media source (the MediaStreamTrack).

See https://github.com/w3c/webrtc-stats/pull/451

Received on Wednesday, 26 June 2019 12:59:12 UTC