1# video<a name="ZH-CN_TOPIC_0000001115814824"></a> 2 3- [Child Components](#zh-cn_topic_0000001058670744_section9288143101012) 4- [Attributes](#zh-cn_topic_0000001058670744_section2907183951110) 5- [Events](#zh-cn_topic_0000001058670744_section3892191911214) 6- [Methods](#zh-cn_topic_0000001058670744_section45171131134215) 7- [Example](#zh-cn_topic_0000001058670746_section16867208402) 8 9The <strong><video></strong> component provides a video player. 10 11## Child Components<a name="zh-cn_topic_0000001058670744_section9288143101012"></a> 12 13Not supported. 14 15## Attributes<a name="zh-cn_topic_0000001058670744_section2907183951110"></a> 16 17<a name="zh-cn_topic_0000001058670744_table20633101642315"></a> 18<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> 19</th> 20<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> 21</th> 22<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> 23</th> 24<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> 25</th> 26<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> 27</th> 28</tr> 29</thead> 30<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> 31</td> 32<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> 33</td> 34<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> 35</td> 36<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> 37</td> 38<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> 39</td> 40</tr> 41<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> 42</td> 43<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> 44</td> 45<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> 46</td> 47<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> 48</td> 49<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> 50</td> 51</tr> 52<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> 53</td> 54<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> 55</td> 56<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> 57</td> 58<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> 59</td> 60<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> 61</td> 62</tr> 63<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> 64</td> 65<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> 66</td> 67<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> 68</td> 69<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> 70</td> 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> 72</td> 73</tr> 74</tbody> 75</table> 76 77## Events<a name="zh-cn_topic_0000001058670744_section3892191911214"></a> 78 79<a name="zh-cn_topic_0000001058670744_table341925115454"></a> 80<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> 81</th> 82<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> 83</th> 84<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> 85</th> 86</tr> 87</thead> 88<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> 89</td> 90<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> 91</td> 92<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> 93</td> 94</tr> 95<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> 96</td> 97<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> 98</td> 99<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> 100</td> 101</tr> 102<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> 103</td> 104<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> 105</td> 106<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> 107</td> 108</tr> 109<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> 110</td> 111<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> 112</td> 113<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> 114</td> 115</tr> 116<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> 117</td> 118<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> 119</td> 120<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> 121</td> 122</tr> 123<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> 124</td> 125<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> 126</td> 127<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> 128</td> 129</tr> 130<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> 131</td> 132<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> 133</td> 134<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> 135</td> 136</tr> 137</tbody> 138</table> 139 140## Methods<a name="zh-cn_topic_0000001058670744_section45171131134215"></a> 141 142<a name="zh-cn_topic_0000001058670744_table341925115454"></a> 143<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> 144</th> 145<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> 146</th> 147<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> 148</th> 149</tr> 150</thead> 151<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> 152</td> 153<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> 154</td> 155<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> 156</td> 157</tr> 158<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> 159</td> 160<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> 161</td> 162<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> 163</td> 164</tr> 165<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> 166</td> 167<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> 168</td> 169<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> 170</td> 171</tr> 172</tbody> 173</table> 174 175## Example<a name="zh-cn_topic_0000001058670746_section16867208402"></a> 176 177``` 178<!-- xxx.hml --> 179<div> 180 <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> 181</div> 182``` 183 184``` 185/* xxx.js */ 186export default { 187 data: { 188 event:'', 189 seekingtime:'', 190 timeupdatetime:'', 191 seekedtime:'', 192 isStart: true, 193 }, 194 startCallback:function(){this.event = 'Video playback starts.';}, 195 pauseCallback:function(){this.event = 'Video playback is paused.';}, 196 finishCallback:function(){this.event = 'Video playback is finished.';}, 197 errorCallback:function(){this.event = 'Video playback fails.';}, 198 seekingCallback:function(e){ this.seekingtime = e.currenttime; }, 199 timeupdateCallback:function(e){ this.timeupdatetime = e.currenttime;}, 200 change_start_pause: function() { 201 if(this.isStart) { 202 this.$element('videoId').pause(); 203 this.isStart = false; 204 } else { 205 this.$element('videoId').start(); 206 this.isStart = true; 207 } 208 } 209} 210``` 211