video.md 25.6 KB
Newer Older
W
wusongqing 已提交
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70
# video<a name="ZH-CN_TOPIC_0000001115814824"></a>

-   [Child Components](#zh-cn_topic_0000001058670744_section9288143101012)
-   [Attributes](#zh-cn_topic_0000001058670744_section2907183951110)
-   [Events](#zh-cn_topic_0000001058670744_section3892191911214)
-   [Methods](#zh-cn_topic_0000001058670744_section45171131134215)
-   [Example](#zh-cn_topic_0000001058670746_section16867208402)

The <strong>&lt;video&gt;</strong> component provides a video player.

## Child Components<a name="zh-cn_topic_0000001058670744_section9288143101012"></a>

Not supported.

## Attributes<a name="zh-cn_topic_0000001058670744_section2907183951110"></a>

<a name="zh-cn_topic_0000001058670744_table20633101642315"></a>
<table><thead align="left"><tr id="zh-cn_topic_0000001058670744_row663331618238"><th class="cellrowborder" valign="top" width="23.119999999999997%" id="mcps1.1.6.1.1"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a9ba8c579217b4b8b841b035f1d28b20e"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a9ba8c579217b4b8b841b035f1d28b20e"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a9ba8c579217b4b8b841b035f1d28b20e"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="13.119999999999997%" id="mcps1.1.6.1.2"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a633002333b024497914a4b172446f14e"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a633002333b024497914a4b172446f14e"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a633002333b024497914a4b172446f14e"></a>Type</p>
</th>
<th class="cellrowborder" valign="top" width="10.48%" id="mcps1.1.6.1.3"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a4950f7884c6540b9ad523ac34657d952"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a4950f7884c6540b9ad523ac34657d952"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a4950f7884c6540b9ad523ac34657d952"></a>Default Value</p>
</th>
<th class="cellrowborder" valign="top" width="17.5200000000000005%" id="mcps1.1.6.1.4"><p id="zh-cn_topic_0000001058670744_p824610360217"><a name="zh-cn_topic_0000001058670744_p824610360217"></a><a name="zh-cn_topic_0000001058670744_p824610360217"></a>Mandatory</p>
</th>
<th class="cellrowborder" valign="top" width="35.76%" id="mcps1.1.6.1.5"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a1313564aa9404a338447087d5918c17d"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a1313564aa9404a338447087d5918c17d"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a1313564aa9404a338447087d5918c17d"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="zh-cn_topic_0000001058670744_row10711153415392"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058670744_p13851942163912"><a name="zh-cn_topic_0000001058670744_p13851942163912"></a><a name="zh-cn_topic_0000001058670744_p13851942163912"></a>src</p>
</td>
<td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058670744_p53851422390"><a name="zh-cn_topic_0000001058670744_p53851422390"></a><a name="zh-cn_topic_0000001058670744_p53851422390"></a>string</p>
</td>
<td class="cellrowborder" valign="top" width="10.48%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058670744_p193856420395"><a name="zh-cn_topic_0000001058670744_p193856420395"></a><a name="zh-cn_topic_0000001058670744_p193856420395"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058670744_p23851942103915"><a name="zh-cn_topic_0000001058670744_p23851942103915"></a><a name="zh-cn_topic_0000001058670744_p23851942103915"></a>No</p>
</td>
<td class="cellrowborder" valign="top" width="35.76%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058670744_p4386542163913"><a name="zh-cn_topic_0000001058670744_p4386542163913"></a><a name="zh-cn_topic_0000001058670744_p4386542163913"></a><span id="zh-cn_topic_0000001058670744_ph1386114233917"><a name="zh-cn_topic_0000001058670744_ph1386114233917"></a><a name="zh-cn_topic_0000001058670744_ph1386114233917"></a>Path of the video to play.</span></p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row871123253917"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058670744_p11386134218396"><a name="zh-cn_topic_0000001058670744_p11386134218396"></a><a name="zh-cn_topic_0000001058670744_p11386134218396"></a>muted</p>
</td>
<td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058670744_p338613422396"><a name="zh-cn_topic_0000001058670744_p338613422396"></a><a name="zh-cn_topic_0000001058670744_p338613422396"></a>boolean</p>
</td>
<td class="cellrowborder" valign="top" width="10.48%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058670744_p9386142203914"><a name="zh-cn_topic_0000001058670744_p9386142203914"></a><a name="zh-cn_topic_0000001058670744_p9386142203914"></a>false</p>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058670744_p18386124213913"><a name="zh-cn_topic_0000001058670744_p18386124213913"></a><a name="zh-cn_topic_0000001058670744_p18386124213913"></a>No</p>
</td>
<td class="cellrowborder" valign="top" width="35.76%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058670744_p8386194283917"><a name="zh-cn_topic_0000001058670744_p8386194283917"></a><a name="zh-cn_topic_0000001058670744_p8386194283917"></a>Whether the video is muted.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row36332165231"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_adb8a73146d764f2aab50fc046169ab26"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_adb8a73146d764f2aab50fc046169ab26"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_adb8a73146d764f2aab50fc046169ab26"></a>autoplay</p>
</td>
<td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a06898db2627246f78e85d4fbadeee85c"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a06898db2627246f78e85d4fbadeee85c"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a06898db2627246f78e85d4fbadeee85c"></a>boolean</p>
</td>
<td class="cellrowborder" valign="top" width="10.48%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_ae685ead324a647bcba1bbb45c9402dd6"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_ae685ead324a647bcba1bbb45c9402dd6"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_ae685ead324a647bcba1bbb45c9402dd6"></a>false</p>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058670744_p42461736102118"><a name="zh-cn_topic_0000001058670744_p42461736102118"></a><a name="zh-cn_topic_0000001058670744_p42461736102118"></a> No</p>
</td>
<td class="cellrowborder" valign="top" width="35.76%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a692121725a9b4ebbae65cd22b94b672e"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a692121725a9b4ebbae65cd22b94b672e"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a692121725a9b4ebbae65cd22b94b672e"></a>Whether the video is automatically played.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row13633131616239"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a7c032d302e1d437eac59680e066308b0"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a7c032d302e1d437eac59680e066308b0"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a7c032d302e1d437eac59680e066308b0"></a>controls</p>
</td>
<td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.1.6.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a6ba72f5c52df4fba9b02b5dffa26677e"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a6ba72f5c52df4fba9b02b5dffa26677e"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a6ba72f5c52df4fba9b02b5dffa26677e"></a>boolean</p>
</td>
<td class="cellrowborder" valign="top" width="10.48%" headers="mcps1.1.6.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a23cec1f95fd04ff1b3b20f58844ea654"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a23cec1f95fd04ff1b3b20f58844ea654"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_a23cec1f95fd04ff1b3b20f58844ea654"></a>true</p>
</td>
<td class="cellrowborder" valign="top" width="7.5200000000000005%" headers="mcps1.1.6.1.4 "><p id="zh-cn_topic_0000001058670744_p17246836142119"><a name="zh-cn_topic_0000001058670744_p17246836142119"></a><a name="zh-cn_topic_0000001058670744_p17246836142119"></a>No</p>
</td>
W
wusongqing 已提交
71
<td class="cellrowborder" valign="top" width="35.76%" headers="mcps1.1.6.1.5 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_ab9c92d331da44a0e9114f6760340680a"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_ab9c92d331da44a0e9114f6760340680a"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058340523_ab9c92d331da44a0e9114f6760340680a"></a>Whether to display the video playback control bar. The value <strong>false</strong> means not to display the control bar, and <strong>true</strong> means that the display of the control bar is controlled by the system. The default value is <strong>true</strong>.</p>
W
wusongqing 已提交
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
</td>
</tr>
</tbody>
</table>

## Events<a name="zh-cn_topic_0000001058670744_section3892191911214"></a>

<a name="zh-cn_topic_0000001058670744_table341925115454"></a>
<table><thead align="left"><tr id="zh-cn_topic_0000001058670744_row94208515453"><th class="cellrowborder" valign="top" width="24.91249124912491%" id="mcps1.1.4.1.1"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a487aa1c493e84ca68567b4b65051674d"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a487aa1c493e84ca68567b4b65051674d"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a487aa1c493e84ca68567b4b65051674d"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="29.492949294929495%" id="mcps1.1.4.1.2"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_adc4b506cda3043508da6ee7649c12ca4"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_adc4b506cda3043508da6ee7649c12ca4"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_adc4b506cda3043508da6ee7649c12ca4"></a>Parameter</p>
</th>
<th class="cellrowborder" valign="top" width="45.5945594559456%" id="mcps1.1.4.1.3"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e4cbe58a5c42a7a4585bc8365783bc"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e4cbe58a5c42a7a4585bc8365783bc"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e4cbe58a5c42a7a4585bc8365783bc"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="zh-cn_topic_0000001058670744_row370317364612"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_p1177515914469"><a name="zh-cn_topic_0000001058670744_p1177515914469"></a><a name="zh-cn_topic_0000001058670744_p1177515914469"></a>start</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_p4775139144612"><a name="zh-cn_topic_0000001058670744_p4775139144612"></a><a name="zh-cn_topic_0000001058670744_p4775139144612"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_p1577514934614"><a name="zh-cn_topic_0000001058670744_p1577514934614"></a><a name="zh-cn_topic_0000001058670744_p1577514934614"></a>Triggered when video playback starts.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row8120201134610"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_p8775992468"><a name="zh-cn_topic_0000001058670744_p8775992468"></a><a name="zh-cn_topic_0000001058670744_p8775992468"></a>pause</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_p107755934612"><a name="zh-cn_topic_0000001058670744_p107755934612"></a><a name="zh-cn_topic_0000001058670744_p107755934612"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_p277510954617"><a name="zh-cn_topic_0000001058670744_p277510954617"></a><a name="zh-cn_topic_0000001058670744_p277510954617"></a>Triggered when video playback is paused.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row336512569516"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a58fb4b1d870f466e955cf5ea879c4d4a"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a58fb4b1d870f466e955cf5ea879c4d4a"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a58fb4b1d870f466e955cf5ea879c4d4a"></a>finish</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_abefebd99301b4bdebb798d1b9df24d8d"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_abefebd99301b4bdebb798d1b9df24d8d"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_abefebd99301b4bdebb798d1b9df24d8d"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_afa4290e2620f4f5fbdcb74dcae84e536"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_afa4290e2620f4f5fbdcb74dcae84e536"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_afa4290e2620f4f5fbdcb74dcae84e536"></a>Triggered when video playback is finished.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row1236519563517"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a23e0317cfee94650be4dcd2280c3e94e"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a23e0317cfee94650be4dcd2280c3e94e"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a23e0317cfee94650be4dcd2280c3e94e"></a>error</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_aea26e4f9575044dc8fb65080f3a6684a"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_aea26e4f9575044dc8fb65080f3a6684a"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_aea26e4f9575044dc8fb65080f3a6684a"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a37f7cc43d82c4ee18512bd079349079d"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a37f7cc43d82c4ee18512bd079349079d"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a37f7cc43d82c4ee18512bd079349079d"></a>Triggered when video playback fails.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row18365145615516"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_ad0728eeac06143bbb4a6fdf1ed5c6d91"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_ad0728eeac06143bbb4a6fdf1ed5c6d91"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_ad0728eeac06143bbb4a6fdf1ed5c6d91"></a>seeking</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e2819eae2b4d3e935991b43156347b"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e2819eae2b4d3e935991b43156347b"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e2819eae2b4d3e935991b43156347b"></a>{ currenttime: value(s) }</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a739d9ef0db624f6284554aeaeddffa0a"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a739d9ef0db624f6284554aeaeddffa0a"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a739d9ef0db624f6284554aeaeddffa0a"></a>Time reported when the seek bar is being manipulated, in seconds.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row63651566517"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a233e2f6ff39f49fd97b8f233875d01d4"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a233e2f6ff39f49fd97b8f233875d01d4"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a233e2f6ff39f49fd97b8f233875d01d4"></a>seeked</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a439e69aaf158448e99b3c81cbc9fd624"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a439e69aaf158448e99b3c81cbc9fd624"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a439e69aaf158448e99b3c81cbc9fd624"></a>{ currenttime: value(s) }</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a05c0fe4e05ef4154acee8a06ad56a2de"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a05c0fe4e05ef4154acee8a06ad56a2de"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a05c0fe4e05ef4154acee8a06ad56a2de"></a>Time reported when the seek operation completes, in seconds.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row1042125114520"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a2fb4de45b1594f6fa1a7da45ce0db57f"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a2fb4de45b1594f6fa1a7da45ce0db57f"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a2fb4de45b1594f6fa1a7da45ce0db57f"></a>timeupdate</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_af86bf1da40504ed2a8d14213a42536ab"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_af86bf1da40504ed2a8d14213a42536ab"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_af86bf1da40504ed2a8d14213a42536ab"></a>{ currenttime: value(s) }</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a1d32f00c38c440ddaa63c3f3e01d4e09"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a1d32f00c38c440ddaa63c3f3e01d4e09"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a1d32f00c38c440ddaa63c3f3e01d4e09"></a>Current video playback time (in seconds) reported when the playback progress changes. This time is reported every 250 ms.</p>
</td>
</tr>
</tbody>
</table>

## Methods<a name="zh-cn_topic_0000001058670744_section45171131134215"></a>

<a name="zh-cn_topic_0000001058670744_table341925115454"></a>
<table><thead align="left"><tr id="zh-cn_topic_0000001058670744_row94208515453"><th class="cellrowborder" valign="top" width="24.91249124912491%" id="mcps1.1.4.1.1"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a487aa1c493e84ca68567b4b65051674d"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a487aa1c493e84ca68567b4b65051674d"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a487aa1c493e84ca68567b4b65051674d"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="29.492949294929495%" id="mcps1.1.4.1.2"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_adc4b506cda3043508da6ee7649c12ca4"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_adc4b506cda3043508da6ee7649c12ca4"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_adc4b506cda3043508da6ee7649c12ca4"></a>Parameter</p>
</th>
<th class="cellrowborder" valign="top" width="45.5945594559456%" id="mcps1.1.4.1.3"><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e4cbe58a5c42a7a4585bc8365783bc"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e4cbe58a5c42a7a4585bc8365783bc"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a59e4cbe58a5c42a7a4585bc8365783bc"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="zh-cn_topic_0000001058670744_row370317364612"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_p1177515914469"><a name="zh-cn_topic_0000001058670744_p1177515914469"></a><a name="zh-cn_topic_0000001058670744_p1177515914469"></a>start</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_p4775139144612"><a name="zh-cn_topic_0000001058670744_p4775139144612"></a><a name="zh-cn_topic_0000001058670744_p4775139144612"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_p1577514934614"><a name="zh-cn_topic_0000001058670744_p1577514934614"></a><a name="zh-cn_topic_0000001058670744_p1577514934614"></a>Starts video playback.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row8120201134610"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_p8775992468"><a name="zh-cn_topic_0000001058670744_p8775992468"></a><a name="zh-cn_topic_0000001058670744_p8775992468"></a>pause</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_p107755934612"><a name="zh-cn_topic_0000001058670744_p107755934612"></a><a name="zh-cn_topic_0000001058670744_p107755934612"></a>-</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_p277510954617"><a name="zh-cn_topic_0000001058670744_p277510954617"></a><a name="zh-cn_topic_0000001058670744_p277510954617"></a>Pauses video playback.</p>
</td>
</tr>
<tr id="zh-cn_topic_0000001058670744_row336512569516"><td class="cellrowborder" valign="top" width="24.91249124912491%" headers="mcps1.1.4.1.1 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a58fb4b1d870f466e955cf5ea879c4d4a"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a58fb4b1d870f466e955cf5ea879c4d4a"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_a58fb4b1d870f466e955cf5ea879c4d4a"></a>setCurrentTime</p>
</td>
<td class="cellrowborder" valign="top" width="29.492949294929495%" headers="mcps1.1.4.1.2 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_abefebd99301b4bdebb798d1b9df24d8d"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_abefebd99301b4bdebb798d1b9df24d8d"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_abefebd99301b4bdebb798d1b9df24d8d"></a>{ currenttime: value(s) }</p>
</td>
<td class="cellrowborder" valign="top" width="45.5945594559456%" headers="mcps1.1.4.1.3 "><p id="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_afa4290e2620f4f5fbdcb74dcae84e536"><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_afa4290e2620f4f5fbdcb74dcae84e536"></a><a name="zh-cn_topic_0000001058670744_zh-cn_topic_0000001058460527_afa4290e2620f4f5fbdcb74dcae84e536"></a>Sets the seek position of the video.</p>
</td>
</tr>
</tbody>
</table>

## Example<a name="zh-cn_topic_0000001058670746_section16867208402"></a>

```
<!-- xxx.hml -->
<div>
  <video id='videoId' src='/common/mydream.mp4' muted='false' autoplay='false' controls="true" onstart='startCallback' onpause='pauseCallback' onfinish='finishCallback' onerror='errorCallback' onseeking='seekingCallback' onseeked='seekedCallback' ontimeupdate='timeupdateCallback' onclick="change_start_pause"></video>
</div>
```

```
/* xxx.js */ 
export default {
  data: {
    event:'',
    seekingtime:'',
    timeupdatetime:'',
    seekedtime:'',
    isStart: true,
  },
  startCallback:function(){this.event = 'Video playback starts.';},
  pauseCallback:function(){this.event = 'Video playback is paused.';},
  finishCallback:function(){this.event = 'Video playback is finished.';},
  errorCallback:function(){this.event = 'Video playback fails.';},
  seekingCallback:function(e){ this.seekingtime = e.currenttime; },
  timeupdateCallback:function(e){ this.timeupdatetime = e.currenttime;},
  change_start_pause: function() {
    if(this.isStart) {
      this.$element('videoId').pause();
      this.isStart = false;
    } else {
      this.$element('videoId').start();
      this.isStart = true; 
    }
  }
}
```