aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/mediarecorder/audiobitspersecond/index.html
blob: 5dafa0aff36685a751b9b11863ce1e961a51efab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: MediaRecorder.audioBitsPerSecond
slug: Web/API/MediaRecorder/audioBitsPerSecond
translation_of: Web/API/MediaRecorder/audioBitsPerSecond
---
<p>{{SeeCompatTable}}{{APIRef("MediaStream Recording")}}</p>

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

<h2 id="语法">语法</h2>

<pre class="syntaxbox">var audioBitsPerSecond = MediaRecorder.audioBitsPerSecond</pre>

<h3 id="值"></h3>

<p> {{jsxref("Number")}} (无符号长整型).</p>

<h2 id="说明">说明</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('MediaStream Recording','#dom-mediarecorder-audiobitspersecond','audioBitsPerSecond')}}</td>
   <td>{{Spec2('MediaStream Recording')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>



<p>{{Compat("api.MediaRecorder.audioBitsPerSecond")}}</p>