aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmlmediaelement/pause/index.html
blob: 75953aa0129fe063414fcbd8518cb66064741b10 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: HTMLMediaElement.pause()
slug: Web/API/HTMLMediaElement/pause
tags:
  - 媒体
  - 视频
  - 音频
translation_of: Web/API/HTMLMediaElement/pause
---
<p>{{APIRef("HTML DOM")}}</p>

<p><strong><code>HTMLMediaElement.pause()</code></strong> 方法可用来暂停媒体的播放,如果媒体已经处于暂停状态,该方法没有效果.</p>

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

<pre class="syntaxbox notranslate"><em>HTMLMediaElement</em>.pause()</pre>

<h3 id="参数">参数</h3>

<p>无.</p>

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

<p>无.</p>

<h3 id="异常">异常</h3>

<p>无.</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th>Specification</th>
   <th>Status</th>
   <th>Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'embedded-content.html#dom-media-pause', 'pause()')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Initial definition; living specification.</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C','embedded-content-0.html#dom-media-pause','pause()')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

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

<div class="hidden">本页面的兼容性表格是通过结构化数据生成的.如果你也想提交贡献, 请访问<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并给我们发送合并请求(PR).</div>

<p>{{Compat("api.HTMLMediaElement.pause")}}</p>