From e185d209ea9e2d5e5a9d5eb3803e0ad3f7535764 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Thu, 22 Feb 2024 16:16:24 -0500 Subject: [PATCH] fix(JitsiTrack): Detect track ended event on Safari. Fixes https://github.com/jitsi/jitsi-meet/issues/14386 --- modules/RTC/JitsiTrack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/RTC/JitsiTrack.js b/modules/RTC/JitsiTrack.js index fd61ea816e..22175f2387 100644 --- a/modules/RTC/JitsiTrack.js +++ b/modules/RTC/JitsiTrack.js @@ -84,7 +84,7 @@ export default class JitsiTrack extends EventEmitter { * @param {Function} handler the handler */ _addMediaStreamInactiveHandler(handler) { - if (browser.isFirefox()) { + if (browser.isFirefox() || browser.isWebKitBased()) { this.track.onended = handler; } else { this.stream.oninactive = handler;