webrtc_media_report (webrtc v0.1.0)

View Source

Statistics a codec plugin or the application reports (webrtc:report_media_stats/4): the W3C members each kind of object takes, and how a report merges into what is kept. Counters add up, the other members replace the previous value; an unknown member or a value of the wrong type is dropped.

Summary

Functions

Merge Report into Kept. Returns the members kept and those dropped.

Types

dir/0

-type dir() :: inbound | outbound | source | playout.

Functions

merge(Dir, Report, Kept)

-spec merge(dir(), map(), map()) -> {map(), [{term(), term()}]}.

Merge Report into Kept. Returns the members kept and those dropped.