Open loristissino opened 7 years ago
MediaStreamTrack.getSources() was deprecated and then removed: using it causes the error "MediaStreamTrack.getSources is not a function"
Replacing it with navigator.mediaDevices.enumerateDevices() fixes the problem.
See https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices
MediaStreamTrack.getSources() was deprecated and then removed: using it causes the error "MediaStreamTrack.getSources is not a function"
Replacing it with navigator.mediaDevices.enumerateDevices() fixes the problem.
See https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices