Skip to content

Commit

Permalink
静音排除列表增加EDGE浏览器
Browse files Browse the repository at this point in the history
msedge.exe 暂停播放后,仍然告知系统在播放音乐,影响判断,把它排除掉
  • Loading branch information
H1DDENADM1N committed Mar 1, 2024
1 parent 5dd4c5e commit 750089e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions util/client_pause_other_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

def audio_playering_app_name():
# 不希望匹配的进程名称列表
excluded_processes = ['123pan.exe'] # 123pan.exe 启动后始终在播放音频,不知道为什么。影响判断,把它排除掉
excluded_processes = ['123pan.exe', 'msedge.exe'] # 123pan.exe 启动后始终在播放音频,不知道为什么。影响判断,把它排除掉
# msedge.exe 暂停播放后,仍然告知系统在播放音乐,影响判断,把它排除掉

sessions = AudioUtilities.GetAllSessions()
for session in sessions:
Expand All @@ -15,8 +16,8 @@ def audio_playering_app_name():

def pause_other_audio():
# 不希望匹配的进程名称列表
excluded_processes = ['123pan.exe'] # 123pan.exe 启动后始终在播放音频,不知道为什么。影响判断,把它排除掉

excluded_processes = ['123pan.exe', 'msedge.exe'] # 123pan.exe 启动后始终在播放音频,不知道为什么。影响判断,把它排除掉
# msedge.exe 暂停播放后,仍然告知系统在播放音乐,影响判断,把它排除掉
sessions = AudioUtilities.GetAllSessions()
for session in sessions:
if session.State == 1: # Audio is currently playering
Expand Down

0 comments on commit 750089e

Please sign in to comment.