vue-dplayer
                                
                                 vue-dplayer copied to clipboard
                                
                                    vue-dplayer copied to clipboard
                            
                            
                            
                        Does this player work with SSR?
Hi,
I want to try this with Nuxt.js. Does it work with SSR?
Thanks.
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) }) } }) }
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) }) } }) }
你好,好像用不了呢,可以帮忙解答一下嘛