Open dai-shi opened 4 years ago
Currently, audio track is added regardless of "Mic On" flag, which allows users to speak instantly after they enable the mic. This is done by track.enabled = true/false. ref: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack
track.enabled = true/false
It looks like even if the track is not enabled, the RTCSender transmits some bytes. Can we improve it by using sender.replaceTrack instead? How can we make an empty audio track at the start?
sender.replaceTrack
new AudioContext().createMediaStreamDestination().stream;
to create an empty audio stream.
We could use Audio API to create stream/track, instead of sender.replaceTrack.
Currently, audio track is added regardless of "Mic On" flag, which allows users to speak instantly after they enable the mic. This is done by
track.enabled = true/false
. ref: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackIt looks like even if the track is not enabled, the RTCSender transmits some bytes. Can we improve it by using
sender.replaceTrack
instead? How can we make an empty audio track at the start?