Skip to content

Commit 2848073

Browse files
Editorial review: Document RTCEncodedAudioFrame.getMetadata() audioLevel return property (mdn#40835)
* Document RTCEncodedAudioFrame.getMetadata() audioLevel return property * Improve consistency and add explanation links
1 parent 2858edd commit 2848073

File tree

1 file changed

+2
-0
lines changed
  • files/en-us/web/api/rtcencodedaudioframe/getmetadata

1 file changed

+2
-0
lines changed

files/en-us/web/api/rtcencodedaudioframe/getmetadata/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ None.
2626

2727
An object with the following properties:
2828

29+
- `audioLevel`
30+
- : A number representing the audio level of this frame. The value is between 0 and 1 inclusive (linear), where 1.0 represents 0 dBov ([decibels relative to full scale (DBFS)](https://en.wikipedia.org/wiki/DBFS)), 0 represents silence, and 0.5 represents approximately 6 dB SPL change in the [sound pressure level](https://en.wikipedia.org/wiki/Sound_pressure#Sound_pressure_level) from 0 dBov. The value is converted from the -127 to 0 range specified in [RFC6464](https://www.rfc-editor.org/rfc/rfc6464) via the equation `10^(-rfc_level/20)`. If the RFC6464 header extension is not present in the received packets of the frame, `audioLevel` will be `undefined`.
2931
- `synchronizationSource`
3032
- : A positive integer value indicating synchronization source ("ssrc") of the stream of RTP packets that are described by this frame.
3133
A source might be something like a microphone, or a mixer application that combines multiple sources.

0 commit comments

Comments
 (0)