|
|
@ -19,11 +19,15 @@ export default { |
|
|
|
url: { |
|
|
|
type: String, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
rangeIndex: { |
|
|
|
type: Number, |
|
|
|
default: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
async mounted() { |
|
|
|
// const player = await openLiveVideo(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum }) |
|
|
|
const player = new HttpLivePlayer(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum }); |
|
|
|
const player = new HttpLivePlayer(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum, rangeIndex: this.rangeIndex }); |
|
|
|
|
|
|
|
this.$once("hook:beforeDestroy", () => player?.destroy()); |
|
|
|
} |
|
|
|