-
Notifications
You must be signed in to change notification settings - Fork 4
feat(stream): 优化连接中→首帧过渡 + RTSP 瞬态错误自动重试 #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| /** | ||
| * 串流连接中显示的小课堂提示。 | ||
| * 内容偏向真实存在但少有人知的隐藏技巧/小彩蛋,从历次 CHANGELOG 挖掘而来。 | ||
| * 目标:让用户每次连接都能学到一个新东西,而不是看到常见能力的复读。 | ||
| * | ||
| * 在 StreamPage 的 ConnectingOverlay 中随机展示一条,让等待 launchApp / 首帧 | ||
| * 的几秒钟(HTTPS + TLS + RTSP + 解码器初始化)不至于纯黑等待。 | ||
| */ | ||
| export const STREAM_CONNECTING_TIPS: readonly string[] = [ | ||
| // —— 隐藏手势 / 双击 / 长按彩蛋 —— | ||
| '🐚 双击 ESC 可以呼出游戏菜单,不想用可以在设置里换成 F1/F12/~ 哦~', | ||
| '🐚 长按 Start 键也能呼出游戏菜单,不用伸手摸屏幕~', | ||
| '🐚 性能覆盖层双击切换横/竖布局,长按锁定后画面事件可以穿透过去~', | ||
| '🐚 自定义按键的双击绑定可以单独设置一个动作,摇杆的 L3/R3 就是这么做的~', | ||
| '🐚 双指捏合可以缩放画面最高 10x,单指还能继续平移~', | ||
| '🐚 触控板模式支持双指滚动、长按拖拽、双击拖拽全套手势~', | ||
|
|
||
| // —— 振动黑魔法(差异化卖点) —— | ||
| '🐚 没有手柄也能感受振动反馈:开启音频振动,手机马达跟着低频/鼓点震起来~', | ||
| '🐚 音频振动有"音乐/节奏"模式,听歌时手机会跟节拍跳~', | ||
| '🐚 USB 手柄支持立体声空间感振动:声源偏左低频马达增强,偏右高频马达增强~', | ||
| '🐚 自定义按键支持 HD Haptic 触感分级,按下去的回馈也能定制~', | ||
|
|
||
| // —— 画质冷知识 —— | ||
| '🐚 鸿蒙的 HDR Vivid 比 HDR10 强:色准、亮度映射、暗部细节都不在一个量级~', | ||
| '🐚 XEngine 是华为 GPU 加速的硬件超分,开了不掉帧还更清晰~', | ||
| '🐚 超分辨率"自动"模式会优先 XEngine,不支持时回退 FSR 1~', | ||
| '🐚 SDR→HDR 映像增强可以让普通 SDR 画面焕发 HDR 光彩~', | ||
| '🐚 OLED 暗部校正可以消除低亮度模式切换的闪烁(MatePad Pro 12.2 适配)~', | ||
| '🐚 画面位置支持 9 宫格 + 水平/垂直百分比偏移,刘海挡画面终结~', | ||
|
|
||
| // —— 输入小技巧 —— | ||
| '🐚 没接鼠标?摇杆可以模拟鼠标,桌面和策略游戏照样操作~', | ||
| '🐚 陀螺仪体感瞄准是真的能用,FPS 微调比纯摇杆精准多了~', | ||
| '🐚 DualSense / DualShock4 USB 连接时可以把触摸板当鼠标用~', | ||
| '🐚 Xbox / PS 手柄自动启用 USB 高速模式,理论可达 1000Hz 轮询~', | ||
| '🐚 Joy-Con / Pro Controller 也能用,按键映射已经内置好~', | ||
| '🐚 蓝牙手柄的 Home 键已防误触,再也不会被弹出去了~', | ||
|
|
||
| // —— 界面彩蛋 / 高级技巧 —— | ||
| '🐚 应用列表的背景图会跟着你长按选中的应用自动切换,是当前应用的封面哦~', | ||
| '🐚 应用列表右上角图标可以切换小图标列表模式,长列表更省空间~', | ||
| '🐚 主题有巧克力深色和 Gura 鲨鱼蓝浅色两套,设置里切换试试~', | ||
| '🐚 IME 输入面板右上角 🔒/🔓 可以锁定快捷条,避免误触收起~', | ||
| '🐚 自定义按键支持多档配置档案,不同游戏自动加载上次用的那套~', | ||
| '🐚 自定义按键支持智能配色:12 套预设 + 屏幕取色一键匹配壁纸~', | ||
| '🐚 自定义按键的蜂窝六边形群组可以一键生成 7 枚六边形按键~', | ||
| '🐚 自定义按键编辑模式有 PPT 风格的对齐吸附线,拖拽就能对齐~', | ||
| '🐚 自定义按键二维码分享用 v3 压缩算法,最多 30 个按键也能塞进一张码~', | ||
| '🐚 每个应用可以配置专属的"超级指令",启动时自动按顺序执行~', | ||
|
|
||
| // —— 网络 / 连接小技巧 —— | ||
| '🐚 网络测试后可以锁定首选地址,跨网络场景下连接更可靠~', | ||
| '🐚 智能码率(ABR)会实时监控丢包延迟自动调节,弱网时主动请求关键帧加速恢复~', | ||
| '🐚 串流中可以动态调节码率,不用退出重连就能找到网络最佳值~', | ||
| '🐚 Foundation Sunshine 服务端能解锁更多增强:HDR Vivid、振动反馈、剪贴板同步、LLM 决策中心~', | ||
|
|
||
| // —— 安全 / 备份 / 战报 —— | ||
| '🐚 设置自动备份会加密保存到本地(HUKS + AES-256-GCM),换设备也能秒恢复~', | ||
| '🐚 串流结束有「杂鱼串流战报」可以看,还能生成 PNG 分享图~' | ||
| ]; | ||
|
|
||
| /** 随机选一条提示语 */ | ||
| export function pickRandomConnectingTip(): string { | ||
| const idx = Math.floor(Math.random() * STREAM_CONNECTING_TIPS.length); | ||
| return STREAM_CONNECTING_TIPS[idx]; | ||
| } |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.