Open PVince81 opened 3 years ago
✨
sparkles
more like :face_with_head_bandage:
:wink:
[ ] are the MediaStream, etc shims still needed for recently supported browser versions ?
[ ] getscreenmedia:
[ ] simplewebrtc/localmedia.js:
[ ] simplewebrtc/peer.js:
isAllTracksEnded
like in localmedia => move to common utility functionssend()
is emitting message event to parent for sending through signaling. This feels mixed up, maybe we should inject the signaling class instance here and call method on it instead of firing events
Some notes I took while trying to understand more in depth the various code paths in the src/utils/webrtc/* paths:
[ ] redundant "joined users" collections:
[ ] signaling.js
[ ] webrtc/*
[ ] file too big, split into smaller logical units ?
[ ] checkPeerMedia and related
[ ] "webrtc.webrtc.on()" we better not use the inner object but forward the events, reading this inside a file called webrtc.js itself is already confusing enough...
[ ] encapsulation
[ ] use mixin for those repeated on/off functions, use WildEmitter everywhere ?
[ ] don't use events for triggering actions
[ ] unit tests for MediaDevicesManager ?
[ ] LocalMediaControls.vue
general