未验证 提交 6f3fd08f 编写于 作者: O openharmony_ci 提交者: Gitee

!2076 【轻量级 PR】:格式修改

Merge pull request !2076 from zengyawen/N/A
......@@ -462,8 +462,10 @@ await videoPlayer.play().then(() => {
### Xcomponent创建方法
```js
播放视频中获取surfaceID依赖了Xcomponent,需要创建一个和xxx.js同名的xxx.hml文件,xxx.hml里面需要添加如下代码:
```js
<xcomponent id = 'Xcomponent'
if = "{{isFlush}}" // 刷新surfaceID,isFlush赋值false再赋值true为一次刷新,会主动再次加载LoadXcomponet获取新的surfaceID
type = 'surface'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册