Skip to content

Commit

Permalink
fixed jwt loss on audio switching
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirari04 committed Jan 8, 2024
1 parent 7db2a63 commit 6509477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
name: "Disabled",
active: false,
click: () => {
active_src = `${FOLDER}/${UUID}/stream/muted/master.m3u8`;
active_src = `${FOLDER}/${UUID}/stream/muted/master.m3u8?jwt=${JWT}`;
let oldPosition = active_video_el.currentTime;
loadResource();
active_video_el.currentTime = oldPosition;
Expand All @@ -291,7 +291,7 @@
name: `${Audio.name} - ${Audio.lang}`,
active: false,
click: () => {
active_src = `${FOLDER}/${UUID}/${Audio.uuid}/stream/master.m3u8`;
active_src = `${FOLDER}/${UUID}/${Audio.uuid}/stream/master.m3u8?jwt=${JWT}`;
let oldPosition = active_video_el.currentTime;
loadResource();
active_video_el.currentTime = oldPosition;
Expand Down

0 comments on commit 6509477

Please sign in to comment.