提交 ebe2e5f7 编写于 作者: Q qiang

feat(App): video 组件增加配置 codec、http-cache

上级 cf1c60b6
......@@ -2,7 +2,7 @@
<uni-video v-on="$listeners">
<div
ref="container"
class="uni-video-container"
class="uni-video-container"
/>
<div class="uni-video-slot">
<slot />
......@@ -17,7 +17,7 @@ import native from '../../mixins/native'
const methods = [
'play',
'pause',
'pause',
'stop',
'seek',
'sendDanmu',
......@@ -56,8 +56,10 @@ const attrs = [
'pageGesture',
'enableProgressGesture',
'showPlayBtn',
'showCenterPlayBtn',
'showLoading'
'showCenterPlayBtn',
'showLoading',
'codec',
'httpCache'
]
export default {
......@@ -149,6 +151,14 @@ export default {
showLoading: {
type: [Boolean, String],
default: true
},
codec: {
type: String,
default: 'hardware'
},
httpCache: {
type: [Boolean, String],
default: false
}
},
computed: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册