WebphoneLib
WebphoneLib copied to clipboard
Replace EventEmitter with EventTarget
Version
(no versions yet)
File / Feature
- src/autoplay.ts
- src/client.ts
- src/media.ts
- src/reconnectable-transport.ts
- src/session-media.ts
- src/session-stats.ts
Summary
I assumed that when the browser supports WebRTC it would also support EventTarget, but that is not always the case. (looking at you "Safari")
I'm guessing we should keep using EventEmitter, it does not add additional package overhead because that is also used by sip.js.
Just putting this here for documentation purposes & triggering possible discussions
We could also use a polyfill for Safari: https://www.npmjs.com/package/event-target-shim