From 45475eb420d0d1b438685b0b06cdfd605b0e53c5 Mon Sep 17 00:00:00 2001 From: rreynaud Date: Wed, 24 Jan 2024 11:03:44 +0100 Subject: [PATCH] DIOS-3740 Fix sse events retrieval --- whep.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whep.js b/whep.js index 362ab8d..cf8481a 100644 --- a/whep.js +++ b/whep.js @@ -163,8 +163,8 @@ export class WHEPClient extends EventTarget if (this.eventsUrl) { //Get supported events - const events = links[Extensions.Core.ServerSentEvents]["events"] - ? links[Extensions.Core.ServerSentEvents]["events"].split(" ") + const events = links[Extensions.Core.ServerSentEvents][0].params.events + ? links[Extensions.Core.ServerSentEvents][0].params.events.split(",") : [ "active", "inactive", "layers", "viewercount" ]; //Request headers const headers = {