From 6b851832955b8105ae25447087a423c376ddd397 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 10 Dec 2020 17:40:15 +0530 Subject: [PATCH] Fix audio on playback --- src/components/WatchVideo.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index c457c1f0..159170a5 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -202,11 +202,14 @@ export default { ); } - if (!this.audioplayer) { + if (!this.audioplayer) this.audioplayer = new Audio( this.video.audioStreams.slice(-1)[0].url ); - } + else + this.audioplayer.src = this.video.audioStreams.slice( + -1 + )[0].url; this.player.src(src);