PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[Peek] Peek.UI persists as a media player after closed

Open AkazaRenn opened this issue 2 years ago • 15 comments

Microsoft PowerToys version

0.95.1

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

Peek

Steps to reproduce

  1. Start PowerToys with Peek enabled
  2. Preview a video or audio file that it is capable of playing
  3. Close the peek window by the cross button on the top-right corner
  4. Check media player status by clicking the bottom-right corner of taskbar, where the network/volume/battery icons are

✔️ Expected Behavior

Peek leaves the media player panel when the playback is stopped by the x button on the top-right corner of the window

❌ Actual Behavior

After the steps provided above: Image

Other Software

No response

AkazaRenn avatar Jun 09 '23 13:06 AkazaRenn

think this is an easy fix for when window is hidden.

crutkas avatar Sep 29 '23 20:09 crutkas

I belive also another way how it is seen is that after opening a video it is an "active" player and system media controls try to control it instead of other player (in my case spotify).

Steps to reproduce:

  1. Start audio playback (eg. on spotify)
  2. Pause the playback (via system controls)
  3. Preview a video file using peek powertoy and let it start playing audio.
  4. Close the peek preview window (and the video stops playing)
  5. Try to start audio playback via system controls.
  6. Expected: Spotify starts playback; Actual: Nothing happens - the system controls are in state shown on the screenshot bellow.

image

Windows 10, Powertoys v0.75

VojtaStanek avatar Oct 31 '23 12:10 VojtaStanek

I can look at this one.

nagolucky18 avatar Dec 26 '23 18:12 nagolucky18

@nagolucky18 Feel free to investigate and fix the issue. Your contribution is welcome.

htcfreek avatar Dec 27 '23 22:12 htcfreek

Video playback issue was resolved in 0.71. See 26160

As for the issue of Peek.UI appearing in volume mixer, this is because the app is always running if Peek is enabled. On window close, the window is hidden instead of the app being fully closed, meaning that the app stays in the volume mixer. I assume this is by design.

If removing the Peek.UI application from the sound mixer is desired, then the solution is to change Peek.UI so that it is only running when previewing media.

nagolucky18 avatar Dec 28 '23 03:12 nagolucky18

still relevant

wDRxxx avatar Aug 06 '24 10:08 wDRxxx

The problem can not only be reproduced while using Peek to display a media file. The problem is there even if I use Peek to look at a text file.

Would it be possible to fix Peek so that it automatically de-register as a media player when the UI is closed? For example Firefox make it work:

  1. Go to https://www.youtube.com to play a video in a new tab
  2. Pause the video playing
  3. The Firefox Youtube video is now integrated with the Windows media/volume control
  4. Close the Firefox video tab
  5. The Youtube video is no longer integrated with the Windows media/volume control.

schedin avatar Sep 04 '24 09:09 schedin

I've been using Peek for a few days, and had no issues with it, but suddenly, for no apparent reason (hours after my last use of Peek, despite using media keys many times since then), this appears on my screen every time I press the play or pause media keys:Image

omgitsraven avatar Nov 07 '24 13:11 omgitsraven

Also there on volume mixer bloating things up: Image

mauripops avatar Mar 05 '25 08:03 mauripops

Using PowerToys v0.95.0 (Win10; Admin), this is happening to me too.

It happens once you 1st use Peek (after booting Windows), independently of file type/extension. (Turning Peek OFF and ON in PowerToys restarts this process from anew, as if you just booted Windows, with the same end result.)

GitKopfkino avatar Oct 19 '25 12:10 GitKopfkino

I'm closing it because the control center issue has been solved for a while, and the Volume Mixer part matches the behavior of other media-playback-capable apps like Edge and Firefox.

AkazaRenn avatar Oct 30 '25 01:10 AkazaRenn

In fact, this problem still exists in the latest version. (0.94.2) As I mentioned in https://github.com/microsoft/PowerToys/issues/33888, the problems is: After using peek, Hardware Media Key UI and Peek in Volume Mixer is permanently displayed, regardless of whether you have opened a media file, a text file, or something else. Unless you restart Peek, it will never disappear.

And expected behavior is: After the Peek window is closed, the Hardware Media Key UI and Peek in Volume Mixer disappears. If it is not a media file, the Hardware Media Key UI and Peek in Volume Mixer will not be displayed.

zheng-fan avatar Oct 30 '25 02:10 zheng-fan

In fact, this problem still exists in the latest version. (0.94.2) As I mentioned in #33888, the problems is: After using peek, Hardware Media Key UI and Peek in Volume Mixer is permanently displayed, regardless of whether you have opened a media file, a text file, or something else. Unless you restart Peek, it will never disappear.

And expected behavior is: After the Peek window is closed, the Hardware Media Key UI and Peek in Volume Mixer disappears. If it is not a media file, the Hardware Media Key UI and Peek in Volume Mixer will not be displayed.

My control center has nothing left after closing the preview. And the latest version is 0.95.1.

AkazaRenn avatar Oct 30 '25 02:10 AkazaRenn

~~Ok I managed to recreate it, it's happening when the preview window is closed automatically by focus loss or by the cross button, but doesn't happen if it's closed by the space button.~~ Damn it's quite random on my side, but at least can confirm it's still happening.

AkazaRenn avatar Oct 30 '25 02:10 AkazaRenn

You are right. The latest version is 0.95.1. My upgrade failed, which led me to believe that the last version I used is the latest version. But this problem still exists in 0.95.1 and it happens everytime.

zheng-fan avatar Oct 30 '25 03:10 zheng-fan