Fix audio on playback

This commit is contained in:
FireMasterK 2020-12-10 17:40:15 +05:30
parent e2f0892269
commit 6b85183295
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

View File

@ -202,11 +202,14 @@ export default {
); );
} }
if (!this.audioplayer) { if (!this.audioplayer)
this.audioplayer = new Audio( this.audioplayer = new Audio(
this.video.audioStreams.slice(-1)[0].url this.video.audioStreams.slice(-1)[0].url
); );
} else
this.audioplayer.src = this.video.audioStreams.slice(
-1
)[0].url;
this.player.src(src); this.player.src(src);