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

Does this player work with SSR?

Open kieusonlam opened this issue 8 years ago • 2 comments

Hi,

I want to try this with Nuxt.js. Does it work with SSR?

Thanks.

kieusonlam avatar Oct 30 '17 09:10 kieusonlam

loadDp () { return new Promise(resolve => { if (this.dp) { resolve(this.dp) } else { import('dplayer') .then(DPlayer => { this.dp = new DPlayer({ container: this.$refs.player, video: { url: this.url, pic: this.thumb }, autoplay: false }) resolve(this.dp) }) } }) }

AllenZho avatar Nov 10 '18 01:11 AllenZho

loadDp () { return new Promise(resolve => { if (this.dp) { resolve(this.dp) } else { import('dplayer') .then(DPlayer => { this.dp = new DPlayer({ container: this.$refs.player, video: { url: this.url, pic: this.thumb }, autoplay: false }) resolve(this.dp) }) } }) }

你好,好像用不了呢,可以帮忙解答一下嘛

OoNaruto avatar Apr 30 '20 07:04 OoNaruto