Add an option/a setting to let the user choose to pause or not the playing when the audio output used by VLC changes

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Kdmeizk
New Cone
New Cone
Posts: 8
Joined: 13 Nov 2016 16:23

Add an option/a setting to let the user choose to pause or not the playing when the audio output used by VLC changes

Postby Kdmeizk » 10 Oct 2017 16:42

Related to:
https://trac.videolan.org/vlc/ticket/18039

Tested:
https://nightlies.videolan.org/build/wi ... t-win64.7z
+ ubuntu/mint version



Hello,

I am writing this message because I do not really know if you are notified when the bugs are closed (I feel it is the case).

Like you said in this bug, VLC handles corking. Excepted for Android that I had tested a long time ago (= works = VLC stops), for Windows 7 64 bits and Linux Mint 32 bits with PulseAudio, when I plug/unplug headphones (Mint + Windows) or disable the audio output used by VLC in the sound manager of Windows, VLC continues playing.


Log – When headphones are plugged/unplugged:
– Linux Mint (PulseAudio):

Code: Select all

changing sink 16: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo)
– Windows:
nothing

Regarding “disable the audio output used by VLC in the sound manager of Windows”, there are nice lines in the log so I am sure you can do something (in comparison to what PulseAudio has given in the log for GNU/Linux).


I think at least on Windows, it should not be too hard to do. For the other OS, I do not know.

The objective is to add an option/a setting to let the user choose to pause or not the playing when the audio output used by VLC changes (disabled or switched to a state like “headphones plugged/unplugged”).

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Add an option/a setting to let the user choose to pause or not the playing when the audio output used by VLC changes

Postby Rémi Denis-Courmont » 10 Oct 2017 20:27

You can configure that in PulseAudio. VLC has no control over audio policy, so we cannot add a setting in VLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Kdmeizk
New Cone
New Cone
Posts: 8
Joined: 13 Nov 2016 16:23

Re: Add an option/a setting to let the user choose to pause or not the playing when the audio output used by VLC changes

Postby Kdmeizk » 10 Oct 2017 23:03

Why does Audacity or Firefox stop the playing when I disable the device output (I do not mute or change the sound, I disable) in Windows (the same thing happens when I start JACK in GNU/Linux)? They had the choice of letting the playing continue or stop it, they chose to stop. Why VLC could not do the same, and even better, let the choice to the user to continue the playing or not?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 49 guests