更新 - #229
Open
gongwenjia666 wants to merge 5 commits into
Open
Conversation
DecoTV v1.2.0 - 性能与部署体验升级
- 引入 hls-utils.ts,用于处理 HLS 播放类型、策略及 URL 验证 - 实现 playback-resolver.ts,以结合健康检查与代理策略解析出可播放的 URL - 创建 source-quality-store.ts,用于管理视频源质量指标并跟踪播放成功/失败状态 - 开发 stream-health.ts,用于对播放流进行健康检查,包括 Manifest 索引文件和分片验证
- 在 PlaybackHealthResult 中新增详细吞吐量指标字段,包括 firstByteMs、sampleBytes、sampleDurationMs 和 throughputKbps - 改进 unwrapDecoProxyUrl 函数以递归解包 URL,并捕获 originalUrl 和 proxyRoute 等额外元数据 - 增强 scorePlaybackHealth 函数,将吞吐量指标纳入播放评分逻辑,以确保更准确地评估播放健康度 - 更新 resolvePlayableUrl 以保留原始 URL 和解包后的 URL 用于诊断目的 - 引入 detectRuntimeTarget 函数以识别运行环境(vercel、docker、node、unknown) - 增强 fetchPlaylist 和 testSmallAsset 函数,加入重试逻辑以处理 HTTP 403 错误并收集调试信息 - 在 testSmallAsset 中实现 CORS 检查,以确定跨域可访问性 - 改进基于估算吞吐量和所需带宽选择 HLS 变体的逻辑 - 在代码中添加详细注释,以提升代码的可读性与可维护性
Author
|
tognyu |
Author
|
tognyi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.