-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microphone feedback #1536
Microphone feedback #1536
Conversation
…a/hubs into feature/glowing-mic Note: I regenerated spritesheets during merge
… into feature/glowing-mic
@@ -595,6 +595,9 @@ class UIRoot extends Component { | |||
if (micDeviceId) { | |||
this.props.store.update({ settings: { lastUsedMicDeviceId: micDeviceId } }); | |||
} | |||
const mediaStreamForMicAnalysis = new MediaStream(); | |||
mediaStreamForMicAnalysis.addTrack(this.state.audioTrack.clone()); | |||
this.props.scene.emit("local-media-stream-created", { mediaStream: mediaStreamForMicAnalysis }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't think of a good way to "future proof" accidental mis-use of this mediaStream. When toggling your microphone, the janus adapter makes sure to disable the audio streams it knows about, so that's good. In general no one should be piping audio from this mediaStream into anything that is sent over the networked or saved to a file (like videos from the camera tool).
215abb9
to
ebe6c24
Compare
The microphone icon now indicates volume level while speaking, even while muted.
These changes add a visual effect to the mic icons that reacts proportionally to the volume coming in from the user's microphone.