Bug 180078 - Reduced volume across OS, after acquiring a mic stream and unplugging headphones.
Summary: Reduced volume across OS, after acquiring a mic stream and unplugging headpho...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 11
Hardware: Mac macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-11-28 05:38 PST by philipp.weissensteiner
Modified: 2017-11-29 08:34 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description philipp.weissensteiner 2017-11-28 05:38:35 PST
Hi,

Apologies if the title isn't clear. Here are the steps to reproduce the issue we're experiencing:
Be careful to not turn volume all the way up if you're testing this.

1. Plug headphones into Mac
2. Visit https://webrtc.github.io/samples/src/content/getusermedia/volume/
3. Unplug headphones
4. Plug headphones into Mac

The OS is now playing audio with reduced volume across the system, until I quit Safari.
At which point audio "jumps back" to the original volume, which almost gave me a heart attack.

Tested on:

- MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)
- MacBook Pro (Retina, 15-inch, Mid 2014)
- MacBook Pro (Retina, 13-inch, Early 2015)

Let me know if you need more information.
Have a good week.
Comment 1 Radar WebKit Bug Importer 2017-11-28 11:24:41 PST
<rdar://problem/35727788>
Comment 2 youenn fablet 2017-11-28 11:33:28 PST
The audio volume decrease is expected since echo cancellation is on.
We could increase the ramp-up time, i.e. the time it takes to go from reduced level back to normal level.
That would help reducing the "heart attack" feeling.
Comment 3 Jon Lee 2017-11-28 12:49:47 PST
(In reply to philipp.weissensteiner from comment #0)
> Hi,
> 
> Apologies if the title isn't clear. Here are the steps to reproduce the
> issue we're experiencing:
> Be careful to not turn volume all the way up if you're testing this.
> 
> 1. Plug headphones into Mac
> 2. Visit https://webrtc.github.io/samples/src/content/getusermedia/volume/
> 3. Unplug headphones
> 4. Plug headphones into Mac

Philipp, are steps 3 and 4 necessary?

Insert a step 0: in another tab, play a YouTube video.

Presumably you hear reduced volume after step 2.
Comment 4 philipp.weissensteiner 2017-11-29 01:10:03 PST
@Jon yes steps 3 and 4 are necessary. Without unplugging the headphones the volume does not change.

@youenn Upon visiting the page initially there is a short dip and ramp-up in terms of volume. But I'm referring to something else: the volume is decreased by *a lot* after step 4. And it's reduced system wide (iTunes, Chrome etc.). Closing the safari tab with the webrtc sample doesn't make a difference. The only way it "jumps" back is actually quitting Safari.
Comment 5 youenn fablet 2017-11-29 08:34:58 PST
@philipp, thanks for the additional clarification, this is really helpful.