[bug] v.3.2.33 有时候会按键失效 | Sometimes the buttons don't work
https://github.com/user-attachments/assets/5b523810-241e-486e-8c69-d1bd889b0257
在一个网站中,嵌套了“iframe”,有时候重新载入时,快捷键不起作用,即使已经有弹窗提示。
In a website, an "iframe" is nested. Sometimes when reloading, the shortcut keys do not work even if a pop-up prompt has appeared.
在视频中,我按下了快捷键,但是视频没有播放
During a video, I pressed a shortcut key, but the video didn't play
{
"command": "pause",
"enabled": true,
"greedy": true,
"id": "8170226529",
"key": {
"altKey": false,
"code": "Space",
"ctrlKey": false,
"metaKey": false,
"shiftKey": false
},
"valueState": "toggle"
}
补充:有些时候只有个别快捷键失效
Supplement: Sometimes only some shortcut keys fail
Hello! I found this error reproducing your issue. It's a browser restriction. The user must first meaningfully interact with the page before code can play/pause a video. It works when playing through the menu because the browser considers that meaningful interaction.
Uncaught (in promise) NotAllowedError: play() failed because the user didn't interact with the document first.
Can't fix since it's a browser restriction.
找到了解决方案:在浏览器设置中将该网站添加到“自动播放”白名单中。
Found the solution: add the site to the "autoplay" whitelist in the browser settings.
edge://settings/privacy/sitePermissions/allPermissions/mediaAutoplay
edge://media-engagement/
Great! I'll keep it in mind if someone has the same issue, and include it on the 'frequently asked questions'.
不止一种情况导致“按键失效”,另一种表现形式是“倍速生效,快进、后退、暂停无效”,在top页面控制台没有报错,但是焦点在“iframe”页面,控制台出现以下错误。
There is more than one situation that causes "button failure". Another manifestation is "double speed is effective, fast forward, rewind, and pause are invalid". There is no error in the console of the top page, but when the focus is on the "iframe" page, the console displays the following error.
Error in event handler: TypeError: Cannot read properties of undefined (reading 'show')
at handleMessage (chrome-extension://mjhlabbcmjflkpjknnicihkfnmbdfced/isolated.js:1:86111)
https://github.com/user-attachments/assets/b0ac61dc-0ff8-4028-8eed-110c8bb878f1