GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

RTCCodecStats: clockRate property

WebRTC

WebRTC

The **`clockRate`** property of the RTCCodecStats dictionary is a positive number containing the media sampling rate in hertz (Hz).

## Values

A positive number indicating the media sampling rate.

## Specifications

## Browser compatibility

## See also

- `codecs.clockRate` option in parameter passed to [`RTCRtpTransceiver.setCodecPreferences()`](/docs/Web/API/RTCRtpTransceiver/setCodecPreferences#clockrate) and [`RTCRtpSender.setParameters()`](/docs/Web/API/RTCRtpSender/setParameters#clockrate).
- `codecs.clockRate` in object returned by [`RTCRtpSender.getParameters()`](/docs/Web/API/RTCRtpSender/getParameters#clockrate) and [`RTCRtpReceiver.getParameters()`](/docs/Web/API/RTCRtpReceiver/getParameters#clockrate).

source: MDN Web Docs mirror · page

Cite this

"RTCCodecStats: clockRate property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/RTCCodecStats/clockRate

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·