zhangzengfei
2022-07-20 4a800a8fc83c6bd1f86a8e847b079a51a7532c09
src/pages/shuohuangMonitorAnalyze/components/aliPlayer/index.vue
@@ -25,6 +25,7 @@
      config: {
        id: null,  //播放器的ID
        width: '100%',
        height: '100%',
        autoplay: false,
        // skinLayout: false,
        progressMarkers: false,
@@ -206,6 +207,7 @@
  },
  mounted() {
    this.$nextTick(() => {
      // console.log('player marks',this.markers);
      this.init();
    });
  },
@@ -253,6 +255,7 @@
      scriptTag.addEventListener("load", () => {
        this.initPlayer();
      });
      // return this.getDuration()
    },
    /**
@@ -270,7 +273,7 @@
        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) {