mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
feat: 优化字幕事件逻辑,新增字幕加载和更新事件,删除不再使用的字幕切换事件
This commit is contained in:
1 parent
9b87f9661d
commit
36fb27d7a1
7 files changed
+69
-74
No files matched your search
+2
-1
@@ -14,7 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
- 新增 `art.subtitle.cues` 属性, 可用于手动调整字幕对象列表
|
||||
- 新增 `subtitleBeforeUpdate` 事件, 在字幕元素渲染前触发
|
||||
- 修改 `subtitleUpdate` 事件为 `subtitleAfterUpdate`, 在字幕元素渲染后触发
|
||||
- 新增 `subtitleTrackLoad` 事件, 在字幕 `url` 挂载在 `HTMLTrackElement` 成功后触发
|
||||
- 优化 `subtitleLoad` 事件的触发时机和回调参数
|
||||
- 删除 `subtitleSwitch` 事件,请使用 `subtitleLoad` 代替
|
||||
|
||||
## [5.1.7] - 2024-8-15
|
||||
|
||||
|
||||
Reference in new issue
Block a user