Skip to content

Commit

Permalink
fix:修复样式
Browse files Browse the repository at this point in the history
  • Loading branch information
javascriptchen committed Oct 12, 2019
1 parent 3baf4aa commit faaa0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/component/video.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default {
- App平台:如果使用的视频路径为本地路径,需要配置资源为释放模式:在 manifest.json 文件内 app-plus 节点下新增 runmode 配置,设置值为liberate。
- App平台:如果想使用非原生的video,即原来普通的html5自带video,可使用web-view组件load html页面,在其中使用普通h5 video。
- App平台:`iOS``<video/>`组件使用`autoplay`属性时,视频加载的`loading`会偏移到左上角。解决方法:去掉`<video/>`组件中的`autoplay`属性,在页面的`onReady`里,调用一下`uni.createVideoContext().play()`,就可以解决了。示例如下:
-

```html
<!-- #ifdef MP-ALIPAY -->
<video id="myVideo" src="test.mp4" autoplay />
Expand Down

0 comments on commit faaa0b6

Please sign in to comment.