xxxily / h5player

This software supports all audio and video websites, such as TikTok, YouTube, Bilibili, TED, Instagram, Twitter, etc. Features include: variable playback speed, screen capture, video download, custom settings, and extensions, etc., providing you with a pleasant online audio and video playback experience.
https://h5player.anzz.top
GNU General Public License v3.0
3.05k stars 253 forks source link

Custom configuration general hotkey customizability #681

Open Heck-R opened 1 day ago

Heck-R commented 1 day ago
  1. Problem Description In the Custom configuration, general customConfiguration hotkeys are not provided with the same possibilities as the site-specific customTaskControlCenter shortcuts, namely the arguments: h5Player, taskConf, data.

  2. URL where the above issue occurs The described issue is more of a missing general feature, it's not site-specific

  3. The browser and browser version information you are using The described issue is more of a missing general feature, it's not browser-specific

  4. Other additional information Example implementation: https://github.com/xxxily/h5player/pull/540

This would allow for doing stuff like the following in custom configs:

{
...
    {
      desc: 'Custom action',
      key: 'arrowdown',
      command: (h5Player, taskConf, data) => {...}
    },
...
}