Open
Conversation
- 实现流媒体播放过程中的自适应窗口调整 - 在视频设置中添加用户可控开关 - 增强视频解码渲染器的安全计算逻辑 - 添加智能重启机制和重试逻辑 - 包含全面的错误处理和参数验证 - 防止NaN/Inf值导致的触摸计算崩溃
9e6c22a to
138658c
Compare
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.
实时窗口适配功能
功能概述
实现自适应窗口功能,允许用户在流媒体播放过程中实时调整窗口尺寸,自动重新配置流媒体分辨率以匹配新的窗口大小。
主要特性
✨ 核心功能
🔧 技术实现
VideoDecoderRenderer.m - 安全计算逻辑
SettingsViewController.m - UI控制
StreamFrameViewController.m - 智能状态管理
MainFrameViewController.m - 健壮重启流程
使用注意事项:
代码变更文件
VoidLink/Stream/VideoDecoderRenderer.m- 增强的视频尺寸计算VoidLink/ViewControllers/SettingsViewController.h/m- 新增设置UIVoidLink/ViewControllers/StreamFrameViewController.m- 适配逻辑实现VoidLink/ViewControllers/MainFrameViewController.h/m- 重启流程支持