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

[feature] automatic skipping of fixed length intros/outros #544

Open hdchieh opened 1 year ago

hdchieh commented 1 year ago

跳过视频中设定好的一段时间,如 OP(00:15---00:35)。 适用场景:自动跳过 片头/片尾,或是视频中固定时间点出现的广告。

hdchieh commented 1 year ago

我在 playProgressRecorder 中添加了

        if (keyName.substring(8,12) === 'somedomain'){
          if (player.currentTime> 11*60 + 4 && player.currentTime < 11*60 + 24){
            player.currentTime = 11*60 + 25
          }
        }

但这样似乎比较笨拙,十分希望能增加这个功能。