vue-dplayer
vue-dplayer copied to clipboard
在IE10 this.$refs.player.dp值为空
参照您的写法 mounted() { this.player = this.$refs.player.dp } 但在IE10上报 this.$refs.player.dp 值为空,导致无法切换视频(switchVideo)或通过play()、pause()函数来启动暂定。
you shound bind options to d-player http://dplayer.js.org/#/home?id=options
<template>
<d-player :options="options" ref="player"></d-player>
</template>
<script>
'use strict';
import VueDPlayer from 'vue-dplayer'
import 'vue-dplayer/dist/vue-dplayer.css'
export default {
components: {
'd-player': VueDPlayer
},
data() {
return {
options: {
},
}
}
}
</script>