Skip to content

Commit

Permalink
fix(JitsiTrack): Detect track ended event on Safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
jallamsetty1 authored and subhamcyara committed Jul 19, 2024
1 parent 4ee3ac6 commit e185d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/RTC/JitsiTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e185d20

Please sign in to comment.