Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
a9a70369
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a9a70369
编写于
8月 03, 2021
作者:
D
dujingcheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
hanfeng6@huawei.com
Signed-off-by:
N
dujingcheng
<
dujingcheng@huawei.com
>
上级
6dbf2509
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
210 addition
and
0 deletion
+210
-0
zh-cn/application-dev/js-reference/video.md
zh-cn/application-dev/js-reference/video.md
+210
-0
未找到文件。
zh-cn/application-dev/js-reference/video.md
0 → 100644
浏览文件 @
a9a70369
# video<a name="ZH-CN_TOPIC_0000001115814824"></a>
-
[
子组件
](
#zh-cn_topic_0000001058670744_section9288143101012
)
-
[
属性
](
#zh-cn_topic_0000001058670744_section2907183951110
)
-
[
事件
](
#zh-cn_topic_0000001058670744_section3892191911214
)
-
[
方法
](
#zh-cn_topic_0000001058670744_section45171131134215
)
-
[
示例
](
#zh-cn_topic_0000001058670746_section16867208402
)
视频播放组件。
## 子组件<a name="zh-cn_topic_0000001058670744_section9288143101012"></a>
不支持。
## 属性<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>
名称
</p>
</th>
<th
class=
"cellrowborder"
valign=
"top"
width=
"23.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>
类型
</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>
默认值
</p>
</th>
<th
class=
"cellrowborder"
valign=
"top"
width=
"7.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>
必填
</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>
描述
</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>
否
</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>
播放视频内容的路径。
</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>
否
</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>
视频是否静音播放。
</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>
否
</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>
视频是否自动播放。
</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>
否
</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_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>
控制视频播放的控制栏是否显示,如果设置为false,则不显示控制栏。默认为true,由系统决定显示或隐藏控制栏。
</p>
</td>
</tr>
</tbody>
</table>
## 事件<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>
名称
</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>
参数
</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>
描述
</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>
播放时触发该事件。
</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>
暂停时触发该事件。
</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>
播放结束时触发该事件。
</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>
播放失败时触发该事件。
</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(秒) }
</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>
操作进度条过程时上报时间信息,单位为s。
</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(秒) }
</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>
操作进度条完成后,上报播放时间信息,单位为s。
</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(秒) }
</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>
播放进度变化时触发该事件,单位为s,更新时间间隔为250ms。
</p>
</td>
</tr>
</tbody>
</table>
## 方法<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>
名称
</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>
参数
</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>
描述
</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>
请求播放视频。
</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>
请求暂停播放视频。
</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(秒) }
</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>
指定视频播放的进度位置。
</p>
</td>
</tr>
</tbody>
</table>
## 示例<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 = '视频开始播放'; },
pauseCallback:function(){ this.event = '视频暂停播放'; },
finishCallback:function(){ this.event = '视频播放结束'; },
errorCallback:function(){ this.event = '视频播放错误'; },
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;
}
}
}
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录