From 13c005d67b1fd49fcb48e81728e145fce41a8ecf Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 11 Jul 2021 01:29:21 +0530 Subject: [PATCH] Use best stream when playing muxed video. --- src/components/Player.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 97667557..c5ffa58b 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -72,7 +72,7 @@ export default { uri = "data:application/dash+xml;charset=utf-8;base64," + btoa(dash); } else { - uri = this.video.videoStreams.filter(stream => stream.codec == null)[0].url; + uri = this.video.videoStreams.filter(stream => stream.codec == null).slice(-1)[0].url; } if (noPrevPlayer)