| | |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | console.log('player marks',this.markers); |
| | | // console.log('player marks',this.markers); |
| | | this.init(); |
| | | }); |
| | | }, |
| | |
| | | scriptTag.addEventListener("load", () => { |
| | | this.initPlayer(); |
| | | }); |
| | | // return this.getDuration() |
| | | }, |
| | | |
| | | /** |
| | |
| | | if (this.source) this.config.source = this.source; //播放源 |
| | | this.config.id = this.playerId; //赋值播放器容器id |
| | | this.config.progressMarkers = this.markers; // 标注 |
| | | console.log("alipayer config", this.config); |
| | | // console.log("alipayer config", this.config); |
| | | this.player && this.player.dispose(); //防止实例的重复 |
| | | this.player = Aliplayer(this.config); |
| | | for (const ev in this.events) { |