vue-dplayer icon indicating copy to clipboard operation
vue-dplayer copied to clipboard

在IE10 this.$refs.player.dp值为空

Open no-simple opened this issue 7 years ago • 1 comments

参照您的写法 mounted() { this.player = this.$refs.player.dp } 但在IE10上报 this.$refs.player.dp 值为空,导致无法切换视频(switchVideo)或通过play()、pause()函数来启动暂定。

no-simple avatar May 04 '18 03:05 no-simple

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>

SocolaDaiCa avatar Jun 14 '18 09:06 SocolaDaiCa