diff --git a/src/components/Player.vue b/src/components/Player.vue index 7021adbe..3d9b2323 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -5,7 +5,13 @@ style="width: 100%; height: 100%; max-height: 75vh; min-height: 250px; background: #000" ref="container" > - + @@ -21,6 +27,7 @@ export default { video: Object, sponsors: Object, selectedAutoPlay: Boolean, + selectedAutoLoop: Boolean, }, computed: { shouldAutoPlay: _this => { @@ -109,7 +116,7 @@ export default { }); videoEl.addEventListener("ended", () => { - if (this.selectedAutoPlay && this.video.relatedStreams.length > 0) { + if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) { const params = this.$route.query; let url = this.video.relatedStreams[0].url; const searchParams = new URLSearchParams(); diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 112836a2..536a353e 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -3,7 +3,13 @@
- +

{{ video.title }}

@@ -48,6 +54,9 @@
+ Loop this Video:  + +
Auto Play next Video:  @@ -118,6 +127,7 @@ export default { title: "Loading...", }, sponsors: null, + selectedAutoLoop: false, selectedAutoPlay: null, showDesc: true, comments: null,