const that = this this.player = videojs(this.$refs.myPlayer, this.defaultOptions, () => { // that.play() }) this.player.on('fullscreenchange', (e) => { console.log(e) })