diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index f136e97f..c5cdead4 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -559,7 +559,7 @@ export default { updateMarkers() { const markers = this.$refs.container.querySelector(".shaka-ad-markers"); const array = ["to right"]; - this.sponsors?.segments.forEach(segment => { + this.sponsors?.segments?.forEach(segment => { const start = (segment.segment[0] / this.video.duration) * 100; const end = (segment.segment[1] / this.video.duration) * 100;