mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix audio on playback
This commit is contained in:
parent
e2f0892269
commit
6b85183295
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue