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

Audio disappears after alt-tab in fullscreen mode. #10

Open
JohannesKauffmann opened this issue Aug 6, 2020 · 3 comments
Open

Audio disappears after alt-tab in fullscreen mode. #10

JohannesKauffmann opened this issue Aug 6, 2020 · 3 comments
Labels
bug Something isn't working enhancement New feature or request low priority Low priority level.

Comments

@JohannesKauffmann
Copy link
Collaborator

As title states. There is no audio playing after alt-tabbing to another app in fullscreen mode. Audio still plays fine if you alt-tab while not in fullscreen mode.

@TimGels TimGels added bug Something isn't working enhancement New feature or request low priority Low priority level. labels Aug 6, 2020
@TimGels
Copy link
Member

TimGels commented Nov 7, 2020

It looks like we need to manually integrate SMTC with the libvlc player for the sound to keep playing in the background. After reading the Microsoft docs system-media-transport-controls and background-audio. I came across the following:

If you are not using the automatic SMTC integration provided by MediaPlayer you must manually integrate with the SMTC to enable background audio. At a minimum, your app must enable the play and pause buttons by setting IsPlayEnabled and IsPauseEnabled to true. Your app must also handle the ButtonPressed event. If your app does not meet these requirements, audio playback will stop when your app moves to the background.

@JohannesKauffmann
Copy link
Collaborator Author

After reading some more documentation, it seems like manually integrating SMTC will enable us to use the build-in Windows media controls/hotkeys. If we do this, I think it should be optional to use the build-in media controls since not everyone likes them.

@TimGels
Copy link
Member

TimGels commented Dec 4, 2020

We could give the user the option on the settings page to control whether or not they want the media controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request low priority Low priority level.
Projects
None yet
Development

No branches or pull requests

2 participants