Open Bug 1127007 Opened 9 years ago Updated 2 years ago

headphones, speakers dont switch

Categories

(Core :: Audio/Video: cubeb, defect, P2)

x86_64
Windows 8.1
defect

Tracking

()

People

(Reporter: uleming, Assigned: kinetik)

References

Details

(Keywords: html5)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150122214805

Steps to reproduce:

Headphones on, start to watch online video (html5) for example youtube (but I tried another website with html5 video content with same result). Pull out headphone jacket, no sound comes from speakers, plug it back, but not sound anymore. Video is playing still at this moment. So this tab is not playing audio anymore.  If same time I open another tab, then sound comes back on another tab but behaviour the same.

This started since update to firefox 35


Actual results:

Sound from certain tab disappears.


Expected results:

Firefox suppose to switch audio stream between speakers and headphones.
I did try to follow advice https://bugzilla.mozilla.org/show_bug.cgi?id=944108 to start Firefox in safe mode, I tried to create new profile but no success. 
Same behavior with playing just audio. 
Important notice pressing stop/play didn't bring back sound, but if i move control to play forward then sound comes back (on video, audio content on headphone, speaker whatever is now active). Volume up/down didn't help. Also helps to start playing another audio on page, if there is several audio or video on same page.
Keywords: html5
Application Basics
------------------

Name: Firefox
Version: 35.0.1
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Multiprocess Windows: 0/1

Crash Reports for the Last 3 Days
---------------------------------

All Crash Reports

Extensions
----------

Name: ADB Helper
Version: 0.7.3
Enabled: true
ID: adbhelper@mozilla.org

Name: Adblock Plus
Version: 2.6.7
Enabled: true
ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

Name: DownloadHelper
Version: 4.9.24
Enabled: true
ID: {b9db16a4-6edc-47ec-a1f4-b86292ed211d}

Name: Firebug
Version: 2.0.7
Enabled: true
ID: firebug@software.joehewitt.com

Name: Firefox OS 2.2 Simulator
Version: 2.2.20141123
Enabled: true
ID: fxos_2_2_simulator@mozilla.org

Name: Quick Translator
Version: 1.0
Enabled: true
ID: {5C655500-E712-41e7-9349-CE462F844B19}

Name: Session Manager
Version: 0.8.1.6
Enabled: true
ID: {1280606b-2510-4fe0-97ef-9b5a22eafe30}

Name: SPDY indicator
Version: 2.2
Enabled: true
ID: spdyindicator@chengsun.github.com

Name: Xmarks
Version: 4.3.6
Enabled: true
ID: foxmarks@kei.com

Name: 1-Click YouTube Video Downloader
Version: 2.3.8
Enabled: false
ID: YoutubeDownloader@PeterOlayev.com

Name: anonymoX
Version: 2.4.6
Enabled: false
ID: client@anonymox.net

Name: Anti-Aliasing Tuner
Version: 14.12.03.01
Enabled: false
ID: aatuner@hotmint.com

Name: Download YouTube Videos as MP4
Version: 1.7.30
Enabled: false
ID: {b9bfaf1c-a63f-47cd-8b9a-29526ced9060}

Name: Dust-Me Selectors
Version: 4.1
Enabled: false
ID: {3c6e1eed-a07e-4c80-9cf3-66ea0bf40b37}

Name: Easy Youtube Video Downloader Express
Version: 7.37
Enabled: false
ID: {b9acf540-acba-11e1-8ccb-001fd0e08bd4}

Name: FirePath
Version: 0.9.7.1
Enabled: false
ID: FireXPath@pierre.tholence.com

Name: Flash and Video Download
Version: 1.66
Enabled: false
ID: {bee6eb20-01e0-ebd1-da83-080329fb9a3a}

Name: Globefish
Version: 1.4.1
Enabled: false
ID: globefish@projects.6831.courses.csail.mit.edu

Name: Google Translator for Firefox
Version: 2.1.0.3m
Enabled: false
ID: translator@zoli.bod

Name: Inline Translator
Version: 1.3
Enabled: false
ID: itrans@tenshi

Name: JS Deminifier
Version: 1.0.9
Enabled: false
ID: jsdeminifier@murphy.ben.name

Name: Live HTTP headers
Version: 0.17
Enabled: false
ID: {8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}

Name: metrika-info
Version: 1.1
Enabled: false
ID: debugger@metrika.yandex.ru

Name: QuickJava
Version: 2.0.6
Enabled: false
ID: {E6C1199F-E687-42da-8C24-E7770CC3AE66}

Name: Shumway
Version: 0.9.3659
Enabled: false
ID: shumway@research.mozilla.org

Name: Tamper Data
Version: 11.0.1
Enabled: false
ID: {9c51bd27-6ed8-4000-a2bf-36cb95c0c947}

Name: TS Magic Player
Version: 1.1.40
Enabled: false
ID: magicplayer@torrentstream.org

Name: Web Developer
Version: 1.2.5
Enabled: false
ID: {c45c406e-ab73-11d8-be73-000a95be3b12}

Name: xpath finder
Version: 1.02
Enabled: false
ID: xpath_finder@xpath_finder.com

Name: YouTube Video and Audio Downloader
Version: 0.4.2
Enabled: false
ID: feca4b87-3be4-43da-a1b1-137c24220968@jetpack

Graphics
--------

Adapter Description: Intel(R) HD Graphics 4000
Adapter Drivers: igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
Adapter RAM: Unknown
ClearType Parameters: D [ Gamma: 2200 Pixel Structure: B ClearType Level: 50 Enhanced Contrast: 0 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 50 Enhanced Contrast: 200 ]
Device ID: 0x0166
DirectWrite Enabled: false (6.3.9600.17415)
Driver Date: 9-2-2012
Driver Version: 9.17.10.2849
GPU #2 Active: false
GPU Accelerated Windows: 0/1 Basic (OMTC)
Subsys ID: 05721028
Vendor ID: 0x8086
WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote: true
AzureCanvasBackend: skia
AzureContentBackend: cairo
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0

Important Modified Preferences
------------------------------

accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.frecency_experiment: 1
browser.places.smartBookmarksVersion: 7
browser.sessionstore.upgradeBackup.latestBuildID: 20150122214805
browser.startup.homepage_override.buildID: 20150122214805
browser.startup.homepage_override.mstone: 35.0.1
browser.tabs.warnOnClose: false
dom.mozApps.used: true
extensions.lastAppVersion: 35.0.1
gfx.direct3d.last_used_feature_level_idx: 0
media.gmp-gmpopenh264.lastUpdate: 1412795219
media.gmp-gmpopenh264.version: 1.1
media.gmp-manager.lastCheck: 1422397421
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1422471104
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
plugins.notifyMissingFlash: false
privacy.donottrackheader.enabled: true
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1422309993

Important Locked Preferences
----------------------------

JavaScript
----------

Incremental GC: true

Accessibility
-------------

Activated: false
Prevent Accessibility: 0

Library Versions
----------------

NSPR
Expected minimum version: 4.10.7
Version in use: 4.10.7

NSS
Expected minimum version: 3.17.2 Basic ECC
Version in use: 3.17.2 Basic ECC

NSSSMIME
Expected minimum version: 3.17.2 Basic ECC
Version in use: 3.17.2 Basic ECC

NSSSSL
Expected minimum version: 3.17.2 Basic ECC
Version in use: 3.17.2 Basic ECC

NSSUTIL
Expected minimum version: 3.17.2
Version in use: 3.17.2

Experimental Features
---------------------
I can reproduce this with latest nightly and new profile.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mozilla/5.0 (Windows NT 6.3; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20151108030417

I could also reproduce the issue on the latest Nightly. Sound is lost after switching between headphones and speakers.
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Version: 35 Branch → Trunk
Component: Audio/Video: Playback → Audio/Video: cubeb
Rank: 15
I've seen some other reports about issues with plugging/unplugging.  Paul, Matthew -- Any ideas what may be going on here?
Flags: needinfo?(padenot)
Flags: needinfo?(kinetik)
What audio setup to you both have?
Flags: needinfo?(zhoubcfan)
Flags: needinfo?(simona.marcu)
Flags: needinfo?(padenot)
(In reply to Paul Adenot (:padenot) from comment #6)
> What audio setup to you both have?

Driver Provider: Microsoft
Driver date: 8/21/2013
Driver version: 6.3.9600.16384
Driver Signer: Microsoft Windows

Please let me know if any other information is needed.
Flags: needinfo?(simona.marcu)
I don't know which information I should provide.

windows 10.0.11082 with laptop. default audio driver
Flags: needinfo?(zhoubcfan)
Possibly related to bug 1197047.
Flags: needinfo?(kinetik)
Hi Matthew -- Can you take this bug?  If so, when do you think you'd be able to start working on it?  I'd really like to see this bug move forward.
Flags: needinfo?(kinetik)
No problem taking this, but might not get to it until next month.
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
Flags: needinfo?(kinetik)
Could you please run "dxdiag" from Start->Run, click "Save All Information" and attach the result to the bug?  The text file will show the audio hardware and drivers in use.
Flags: needinfo?(simona.marcu)
Flags: needinfo?(c)
Please see comment #12.
Flags: needinfo?(uleming)
Attached file DxDiag.txt
Flags: needinfo?(c)
I still reproduce it on Windows 8.1 
Nightly 48.0a1 (2016-03-15)

Switch is done by VLC and other softwares, not anymore on any tab of Firefox.
But perhaps it's wanted. I mean, it's the same with smartphones. Last ones don't switch.

Actually, it may be better like that? Perhaps WE are better than them like that.
Attached file DxDiag.txt
Flags: needinfo?(simona.marcu)
This bug WFM on 
Windows 10 x64. 
50.0a1 (2016-06-14)
(In reply to Xavier Delgado from comment #18)
> This bug WFM on 
> Windows 10 x64. 
> 50.0a1 (2016-06-14)

This is still an issue on Windows 8.1 with Nightly 50.0a1.
STR:
1. Navigate to YouTube and play any video
2. Unplug the headphones jack
3. Plug the headphones jack back in.

Expected results:
The video should continue to play after unplugging the jack and the audio should work properly after plugging the jack back in.

Actual results:
The video stops after unplugging the jack (the loading throbber is displayed) and nothing changes after plugging the jack back in.
I can repro it and have a fix that is almost ready, it'll be fixed in bug 1197047.
Still relevant?
Flags: needinfo?(kinetik)
Yes.  Need to find time to fix this.
Flags: needinfo?(kinetik)
Mass change P1->P2 to align with new Mozilla triage process
Priority: P1 → P2
Status: ASSIGNED → NEW
Flags: needinfo?(uleming)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: