feat(video-player): 增强视频播放器错误处理并添加倍速提示

- 添加视频错误自动恢复机制,支持跳过损坏区间继续播放
- 增加倍速播放提示功能,2秒后自动消失
- 扩展默认倍速选项,新增0.75x和1.25x选项
- 优化错误处理流程,增加重试计数和详细日志
- 移除调试用的console.log语句
This commit is contained in:
2026-03-10 15:13:22 +08:00
parent 7317550374
commit dff1f49269
5 changed files with 213 additions and 20 deletions

11
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "3.4.5",
"license": "MIT",
"dependencies": {
"edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.8",
"edu-core": "file:../edu-core",
"jquery": "^3.7.1",
"tcplayer.js": "^5.1.0"
},
@@ -19,7 +19,6 @@
},
"../edu-core": {
"version": "1.0.8",
"extraneous": true,
"license": "ISC",
"devDependencies": {}
},
@@ -74,9 +73,8 @@
"integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w=="
},
"node_modules/edu-core": {
"version": "1.0.8",
"resolved": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#a5f40fafc3935e886a3021b3a9ef49ed7ac13025",
"license": "ISC"
"resolved": "../edu-core",
"link": true
},
"node_modules/es5-shim": {
"version": "4.6.7",
@@ -399,8 +397,7 @@
"integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w=="
},
"edu-core": {
"version": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#a5f40fafc3935e886a3021b3a9ef49ed7ac13025",
"from": "edu-core@git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.8"
"version": "file:../edu-core"
},
"es5-shim": {
"version": "4.6.7",