New issue
Advanced search Search tips

Issue 924081 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

MediaStreamTrack onended event is not instantly fired when unplugging microphone jack

Reported by remusneg...@gmail.com, Today (18 hours ago)

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce the problem:
1. Go to this link https://addpipe.com/media-recorder-api-demo/ (you need a webcam and a separate microphone connected by audio jack)
2. Once the page loads, unplug your microphone - the ondevicechange log will appear on screen (I have an integrated Realtek High Definition Audio soundboard that automatically detects whenever an audio jack is plugged/unplugged)
3. Immediately start recording for as long as you wish

What is the expected behavior?
When you press stop, a webm file containing the recording will be created.

What went wrong?
MediaStreamTrack onended event is not instantly fired and the result is an empty (0 KB) file that is created

Did this work before? Yes Don't remember the exact version, but it was prior to version Chrome 69 for certain

Does this work in other browsers? Yes

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 10.0
Flash Version: 

The MediaStreamTrack onended event will eventually fire but with a delay of about 10 seconds, to see this, do the following:

1.With both the camera and microphone plugged in, refresh the link (https://addpipe.com/media-recorder-api-demo/)
2.Unplug the microphone
3.Wait for about 10 seconds until the log "audio track.onended" is shown. This is the exact moment when the event is fired

If you record a video now, the final recording will be normal but with no audio, as expected.
 

Comment 1 Deleted

Comment 2 by remusneg...@gmail.com, Today (17 hours ago)

Just made an additional test

The same happens also with a USB microphone.

Firefox instantly detects the change and works as expected.

Comment 3 by remusneg...@gmail.com, Today (16 hours ago)

Comment 4 by susan.boorgula@chromium.org, Today (10 hours ago)

Labels: Needs-Triage-M71

Sign in to add a comment