Repository navigation
What's new
The first release, now on AppGallery for phones, tablets and PCs/2-in-1s (the AppGallery version
leaves out TVs). The code is the same as 1.0.0-pre-release.3; the sections below list what changed in each test build.
1.0.0-pre-release.3
The build submitted to AppGallery for the 1.0.0 release (versionCode 1000002).
- The touch controller now depends on whether this device has a touchscreen, not on the device type: PCs and 2-in-1s
with a built-in or external touchscreen, and devices that switch between tablet and PC modes, can use it. It is
checked again whenever input devices change; without a touchscreen its settings are greyed out with "This device has
no touchscreen".
1.0.0-pre-release.2
This build mostly reworks the player: a new side menu, picture position, screen orientation with separate landscape
and portrait layouts, and the lock, "Picture above buttons" and "Freeze on frame loss" are gone.
- Player menu: sound, controller and picture position at the top, then a "Streaming options" group with picture
enhancement, orientation, network optimization, stats overlay and picture-in-picture on leave (the separate Streaming
options page is gone). On/off items are toggles; picture position, orientation and picture enhancement have an
arrow, and orientation and enhancement open a list to pick from (no more stepping left and right). The header has two icon buttons, Record and Exit: Record turns into a red capsule
showing the recording time while recording, and tapping it stops; Exit uses an exit arrow. The manual picture-in-picture
button is gone (leaving the app moves into it on its own). A gap and a thin line keep the first item away from the
header buttons. The Controller page is grouped into status, the main switch, controller and keyboard, and touch
controller, with the long descriptions left to Settings and the guide; unavailable items show a one-line reason,
and picture enhancement is now listed and greyed out on devices without it instead of hidden.
Phones in landscape keep compact spacing, tablets and unfolded foldables get more room. The "1080p · 60 fps" tag on
the picture is gone (the menu header shows it). - Menu button: it shows in full for a few seconds (when streaming starts, after the menu closes, after back or a tap
on the picture), then morphs into a faint short line at the top center that opens the menu when tapped. It always
stays there, and touch controller buttons cannot be dragged onto it. - No accidental exits (replacing the lock): while streaming neither the back gesture nor the back key stops the
stream; it shows "To exit, tap the menu button at the top center" (at most once every 10 seconds) and brings up the button.
Stop from Exit in the menu. Back still steps out of the menu, the "press back twice" rule for the touch controller
is gone, and TVs are unchanged. - Leaving while recording (Exit in the menu, or back on a TV) asks: stop recording and leave, keep recording, or
cancel. Keep recording moves on to Record only: the picture and local sound stop, the controller is let go and full
screen ends, while the recording goes on. Record only no longer asks for 60 Hz. - Picture position: when there is empty space above and below the picture (a tablet held upright, an unfolded
foldable, a tri-fold), tap Picture position in the menu and drag the picture up or down; it snaps to the top, center
and bottom, and Save keeps it for that screen shape (folded, unfolded, rotated). The picture and the touch
controller are separate layers. The item is greyed out with the reason when the picture already fills the height. - Orientation and layouts: on tablets, unfolded foldables, wide foldables and other wide screens the player follows
the system rotation (and the rotation lock), or you can fix it to landscape or portrait in Settings or the menu;
phones, outer screens and TVs stay landscape. Only the player is affected, and other pages return to their earlier
orientation. This replaces "Portrait while streaming" (on becomes Portrait). "Picture above buttons" is gone:
landscape and portrait keep separate layouts (say, buttons over the picture in landscape and below it in portrait);
the default portrait layout fills the space below the picture (shoulder buttons right under it, left stick over
the D-pad and ABXY over the right stick, spaced out to fit, minus/capture/HOME/plus in the middle) with the picture
at the top, and your own "Picture
above buttons" layouts become portrait layouts. - The touch controller is marked experimental, with a new "Touch controller: known issues" guide entry: late or lost
presses on a shaky network, games that only listen to player 1 need it moved first in Change Grip/Order, and it is
not yet tested enough in real games. - Picture enhancement only runs when the picture needs real upscaling (under 1.3x it plays directly), so 1080p no
longer pays about 20 ms for nothing; a 720p picture shown landscape is still enhanced. - The "Freeze on frame loss" toggle is gone: SFT's network and USB links never lose frames and it never fired in
tests; it stays on behind the scenes. The FAQ "The picture pauses briefly" now explains network stalls and what
helps. - Settings are regrouped: Picture and sound (game sound, picture enhancement, 60 Hz), Streaming (orientation,
network optimization, picture-in-picture on leave, stats overlay), Controller, Touch controller (enable, size,
opacity, vibration, auto-hide, Manage layouts), Recording, Appearance and Help. The Beta and Experimental tags of the
Controller and Touch controller groups now sit at the right of the group titles,
and "Touch controller layouts" is now "Manage layouts". - Home, settings, guide, recordings, layouts and about now scroll under the bottom gesture bar instead of stopping
above a solid band. - Enter address manually: full IP addresses can be typed again (the number pad allowed only one dot, so the last two
were lost), and a host name works too (resolved by the system's DNS). - The extra gap above the title on the Record only page is gone (the status bar height was added twice).
1.0.0-pre-release.1
The build submitted to the AppGallery public test.
- Touch controller: on 16:9 landscape screens (640 vp wide) the − ◎ HOME + row at the bottom center overlapped the
D-pad and the right stick; when the screen is too narrow the row now sits above them, and R3 moves to the upper
right of the right stick. - Layouts page: the "In use" tag could overlap the Edit button, and the layout in use still said "Tap to use". On
phones in portrait the buttons squeezed the name and description, so on narrow screens they now sit below the
description. - Wording: the About page, the guide and the app description say "client" instead of "receiver" (it can control
the console now).
1.0.0-beta.3
- Recording: record while streaming, or choose "Record only" on the home screen (no picture, less power), with three
quality presets (high, standard, small). While recording, a Live View in the notification bar shows how long and how
much has been recorded. Recordings stay in the app until you open them in the system player, save them to the
gallery or delete them from the Recordings card on the home screen. While recording, the console is asked to keep
one picture size, so a recording stays in one file. - Controller: once SFT on the console has "Controls from the viewer" turned on (SFT 0.7.20 or later), a controller
or keyboard on this device plays the console. A client is one controller on the console; every local controller
and the keyboard are merged into it. Button layout (by position / by label) and the stick dead zone can be set,
and holding Start and Select for 1.5 seconds opens the menu. - Touch controller (phones and tablets): on-screen buttons with a floating left stick, sliding between face
buttons and D-pad directions, and a light buzz on press. Buttons can be moved, resized and hidden, with optional
L3 / R3. Landscape, portrait and picture-above-buttons each have a default layout, and you can create, edit,
rename and delete your own. - Wide screens (wide foldables, unfolded foldables): portrait while streaming, with the picture above the buttons
so they do not cover it. - Player: the bottom toolbar is replaced by a menu button at the top center that opens a side menu (the TV uses
the same menu); lock and disconnect sit at the top of the menu. - TV: the remote can now reach the menu; the first stream shows a guide to the remote's keys.
- "Keep connected in the background" is gone (picture-in-picture covers it); the long-running background task is
only requested while recording. - Phones stream in landscape by default, and folding or unfolding while streaming re-applies the orientation.
- The AppGallery build now includes the controller and recording.
- Test tools:
tools/mock_sft.py --inputpretends the console takes a controller and logs the controller
messages it receives; controller unit tests and an end-to-end case. - README: tip codes for supporting the project.
1.0.0-beta.2
- Player: the toolbar, the picture badge and the lock button hide after 3 seconds without input. Tapping a
toolbar button restarts the timer, and it pauses while the options panel is open. - The sound button switches between sound and mute as soon as it is tapped (before, it only updated after the
toolbar was hidden and shown again). - While locked, going back (or Esc) shows the lock button and "Go back again to disconnect"; going back again
within 1 second disconnects and leaves the player. - The options panel is now titled "Streaming options".
- AppGallery build: the unfinished gamepad and record entries are hidden. Builds from this repository keep them.
- Test tools:
tools/mock_sft.py --pcmplays a 48 kHz stereo PCM file as game sound instead of a tone.
1.0.0-beta.1
- First version: a native HarmonyOS receiver for SFT streaming over the network (TCP 9950, with console
discovery) or USB, up to 1080p at 60 fps, game sound, freeze on frame loss, picture enhancement, a dedicated
5 GHz hotspot, background keep-alive and picture-in-picture; phones, tablets, PCs/2-in-1s and TVs.
更新内容
第一个正式版,已在华为应用市场上架,支持手机、平板和 PC/2in1(应用市场版本不含智慧屏)。代码与
1.0.0-pre-release.3 相同,下面按测试版分节列出每一版的改动。
1.0.0-pre-release.3
这一版是提交应用市场审核的 1.0.0 正式版包(versionCode 1000002)。
- 触屏手柄改成看本机有没有触摸屏,不再按设备类型:自带或外接触摸屏的 PC/2in1、能在平板和电脑模式之间切换的设备都能用;
输入设备有变化时重新检查。没有触摸屏时设置项置灰,写明“本机没有触摸屏”。
1.0.0-pre-release.2
这一版主要改了播放页:新的侧滑菜单、画面位置、屏幕方向和横竖屏各自的键位,去掉了锁定、分离展示和丢帧定格开关。
- 播放菜单:声音、手柄、画面位置放在最上面,下面“串流选项”一组是画质增强、屏幕方向、网络优化、统计信息、离开时小窗(原来的“串流选项”二级页去掉);
开关项改成开关样式,画面位置、屏幕方向和画质增强带右箭头,屏幕方向和画质增强点进去单选(不再左右切换)。标题行右边是录制和退出两个图标按钮:录制中变成红色胶囊按钮,
显示录制时长,点它停止录制;退出用“箭头出框”图标;手动进小窗的按钮去掉(离开 App 时会自动转入小窗)。标题行下面留出距离、隔一条细线,
免得误触。“手柄”页分成状态、总开关、实体手柄和键盘、触屏手柄几组,长说明只留在设置页和使用说明里;用不了的项只写一行短原因;画质增强在不支持的设备上也照常列出、置灰写原因(原来直接不显示)。
手机横屏用紧凑行距,平板、折叠屏展开时更宽松。画面左上角的“1080p · 60 帧”标签去掉(菜单标题行里有)。 - 菜单按钮:进播放页、关菜单、按返回或点画面后显示几秒完整按钮,之后变形收成顶部中间一条很淡的短横线,点它直接打开菜单;位置固定,
调整键位时按键拖不进这块。 - 防误退出(取代“锁定”):串流时侧滑返回和返回键都不断开,只提示“如需退出,请点击顶部中间的菜单按钮”(10 秒内只提示一次)
并把菜单按钮叫出来;断开要在菜单里点退出。菜单开着时返回照常回上一级、收起菜单。原来触屏手柄显示时“1 秒内连按两次返回”的规则去掉。
智慧屏不受影响,返回照常断开。 - 录制中退出(菜单的退出按钮、智慧屏的返回)会先问:停止录制并退出、继续录制或取消。选继续录制会转到只录制页面:画面和本机声音停掉、
手柄拔掉、退出全屏,录制照常进行。只录制页面不再请求 60 Hz 刷新率。 - 画面位置:画面上下有空白时(竖着用平板、折叠屏展开、三折叠等),在菜单里点“画面位置”,上下拖动画面,靠近顶部、居中、底部时自动对齐,
点“保存”生效;折叠、展开、转屏等不同屏幕形态各记各的位置。画面和触屏手柄是独立的两层,挪画面不会移动按键。画面占满高度时这一项置灰并写明原因。 - 屏幕方向和横竖屏键位:平板、折叠屏展开、阔折叠等宽屏状态下,播放页跟随系统旋转(服从旋转锁定),也可以在设置或菜单里固定成横屏或竖屏;
手机、折叠屏外屏和智慧屏固定横屏。只影响播放页,退出后回到原来的方向。取代“强制竖屏”(开着的自动改成“竖屏”)。“分离展示”去掉:横屏、
竖屏各用各的键位(例如横屏叠在画面上、竖屏按键在下方),竖屏的默认键位排在画面下方的空白里:肩键紧挨画面下沿,左摇杆和十字键、ABXY 和右摇杆上下两行(行距随空白拉开),−◎HOME+ 在中间,画面默认在顶部;原来的“分离”自建键位自动转成竖屏键位。 - 触屏手柄标为“实验性”,使用说明新增“触屏手柄的已知问题”:网络不稳时按键会延迟、丢失;只认 1 号手柄的游戏要先在游戏机上更改握法/顺序;
还没在真实游戏里充分测试。 - 画质增强只在画面需要明显放大时生效(放大不到 1.3 倍自动直出):1080p 画面不再白白多出约 20 ms 延迟,720p 画面横屏显示时照常增强。
- 去掉“丢帧定格”开关:SFT 的网络和 USB 连接都不会丢帧,实测从没触发过;功能在后台一直开着当保险。常见问题“画面偶尔停住一下”改为说明网络卡顿和改善办法。
- 设置页重新分组:画面与声音(游戏声音、画质增强、60 Hz)、串流(屏幕方向、网络优化、离开时小窗、统计信息)、手柄、触屏手柄(启用、大小、透明度、
振动、自动隐藏、键位布局管理)、录像、外观、帮助。手柄的“测试中”和触屏手柄的“实验性”标签移到分组标题行右边。“触屏手柄键位”改名“键位布局管理”。 - 首页、设置、使用说明、录像、键位管理和关于页的内容延伸到底部小白条下面,不再被一条底色挡住。
- 手动输入地址:能输入完整的 IP 了(原来的数字键盘只能输一个点,后两个点输不进去),也可以输入主机名(由系统 DNS 解析)。
- 只录制页面顶部多出来的一截空白去掉(原来按状态栏高度多留了一次)。
1.0.0-pre-release.1
这是提交到应用市场公开测试的版本。
- 触屏手柄:16:9 横屏(640 vp 宽)上,底部中间的 − ◎ HOME + 一排和十字键、右摇杆重叠;屏幕不够宽时这一排
抬到十字键和右摇杆上方,R3 换到右摇杆右上。 - 键位管理:“当前”标记会压到“编辑”按钮上;当前在用的自建键位仍提示“点一下设为当前”。手机竖屏上名字和说明
被按钮挤掉,窄屏时操作按钮放到说明下面。 - 用词:“关于”页、使用说明和应用描述里的“接收端”改成“客户端”(现在也能操作游戏机了)。
1.0.0-beta.3
- 录像:边播边录,或在首页选“只录制”(不显示画面、更省电);三档画质(高画质、标准、省空间)。录制时通知栏
的实况窗显示已录时长和大小。录像先存在应用里,在首页的“录像”卡片里用系统播放器打开、存到图库或删除。
录制时会请游戏机保持一种画面尺寸,录像不用中途换文件。 - 手柄:游戏机上的 SFT 打开“Controls from the viewer”(SFT 0.7.20 起)后,本机的手柄和键盘可以直接操作游戏机。
一个客户端对应游戏机上的一个手柄,本机的几个手柄和键盘合并成这一个;按键布局(按位置 / 按标签)和摇杆死区
可以调整,同时按住开始键和选择键 1.5 秒打开菜单。 - 触屏手柄(手机、平板):画面上的虚拟按键,左摇杆浮动、面向键和十字键可以滑着换键、按下轻震。键位可以拖动、
改大小、隐藏,L3 / R3 可选;横屏、竖屏、分离展示三种摆法各有默认键位,可以新建、编辑、改名、删除自己的键位。 - 宽屏状态(阔折叠、折叠屏展开等):可以强制竖屏,并让画面在上、按键在下,不挡画面。
- 播放页:底部工具条改成顶部中间的菜单按钮和右侧的侧滑菜单(智慧屏用同一套),锁定和断开在菜单顶部。
- 智慧屏:修好遥控器进不了菜单的问题;第一次进播放页时弹窗说明遥控器各键的用法。
- 去掉“后台保持连接”(有小窗就够了),只在录制时申请后台长时任务。
- 手机串流时默认横屏;串流中折叠或展开会按新的屏幕调整方向。
- 应用市场版也提供手柄和录像。
- 测试工具:
tools/mock_sft.py --input模拟游戏机接受手柄,并打出收到的手柄消息;新增手柄的单元测试和端到端测试。 - README 增加打赏二维码。
1.0.0-beta.2
- 播放页:底部工具条、左上角画面信息和锁定后的锁形按钮,3 秒没有操作就自动隐藏;点工具条上的按钮会重新计时,
串流选项面板打开时不计时。 - 声音按钮点一下立即在“声音/静音”之间切换(之前要等工具条隐藏再出现才更新)。
- 锁定时返回(或按 Esc)只叫出锁形按钮并提示“再返回一次断开”,1 秒内再返回一次就断开并退出播放页。
- 播放页的选项面板标题改为“串流选项”。
- 应用市场版隐藏还没做完的“手柄”“录制”入口;本仓库构建的版本照旧保留。
- 测试工具:
tools/mock_sft.py --pcm可以把 48 kHz 立体声 PCM 文件当作游戏声音循环播放(原来只有单音)。
1.0.0-beta.1
- 首个版本:SFT 串流的鸿蒙原生接收端,支持网络(TCP 9950,局域网发现主机)和 USB 连接,最高 1080p 60 帧、
游戏声音、丢帧定格、画质增强、5 GHz 专用热点、后台保持和小窗播放;手机、平板、PC/2in1 和智慧屏。
Unsigned build of NSSFT 1.0.0, built by GitHub Actions from eba2302.
It must be signed with your own certificate before it can be installed. See
Unsigned builds.
The AppGallery version is built and signed separately.
1e62cd8645ba414e7735fc3722e1f76b0a712b6d9a3865952ddf6b675e99eedd NSSFT-1.0.0-unsigned.hap