W3cubDocs

/Web APIs

RTCRtpEncodingParameters: maxFramerate property

The maxFramerate property of the RTCRtpEncodingParameters dictionary specifies the maximum framerate that can be used to send the encoding, in frames per second.

The user agent is free to allocate bandwidth between the encodings, as long as the maxFramerate value is not exceeded.

The frame rate is a positive real number (RTCPeerConnection.addTransceiver() and RTCRtpSender.setParameters() will throw a RangeError exception if the value is less than 0.0). Setting the maximum frame rate to zero using RTCRtpSender.setParameters() has the effect of freezing the video on the next frame.

Value

A positive real number indicating the maximum frame rate for the specified encoding, in frames per second.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
maxFramerate 81 81
101Zero is treated as 'no fps limit' (see bug 1611957).
No 68 11 81 81
101Zero is treated as 'no fps limit' (see bug 1611957).
58 11 13.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpEncodingParameters/maxFramerate