Skip to content
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

Merged
merged 30 commits into from
Jul 23, 2019
Merged

Microphone feedback #1536

merged 30 commits into from
Jul 23, 2019

Conversation

johnshaughnessy
Copy link
Contributor

@johnshaughnessy johnshaughnessy commented Jul 16, 2019

The microphone icon now indicates volume level while speaking, even while muted.

muted indicator

These changes add a visual effect to the mic icons that reacts proportionally to the volume coming in from the user's microphone.

@@ -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 });
Copy link
Contributor Author

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).

@johnshaughnessy johnshaughnessy changed the base branch from feature/camera-videos to master July 22, 2019 21:58
@johnshaughnessy johnshaughnessy merged commit a0a76cc into master Jul 23, 2019
@misslivirose misslivirose added the whats new Include this PR on the "What's New" page label Jul 24, 2019
@brianpeiris brianpeiris changed the title Feature/glowing mic Microphone feedback Jul 25, 2019
@brianpeiris brianpeiris added whats new Include this PR on the "What's New" page and removed whats new Include this PR on the "What's New" page labels Jul 25, 2019
@johnshaughnessy johnshaughnessy deleted the feature/glowing-mic branch August 9, 2019 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
whats new Include this PR on the "What's New" page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants