--- title: MediaRecorder.audioBitsPerSecond slug: Web/API/MediaRecorder/audioBitsPerSecond translation_of: Web/API/MediaRecorder/audioBitsPerSecond ---

{{SeeCompatTable}}{{APIRef("MediaStream Recording")}}

audioBitsPerSecond  {{domxref("MediaRecorder")}} 接口的只读属性. 它返回录制器所使用的音频编码码率. 或许与构造函数中指定的比特率有些不同 (如果调用构造函数的时候有指定).

语法

var audioBitsPerSecond = MediaRecorder.audioBitsPerSecond

 {{jsxref("Number")}} (无符号长整型).

说明

Specification Status Comment
{{SpecName('MediaStream Recording','#dom-mediarecorder-audiobitspersecond','audioBitsPerSecond')}} {{Spec2('MediaStream Recording')}} Initial definition.

浏览器兼容性

{{Compat("api.MediaRecorder.audioBitsPerSecond")}}