Skip to content

HomePlay 1.0.5

Choose a tag to compare

@surfine surfine released this 01 Nov 15:21
· 14 commits to main since this release

HomePlay 1.0.5 — release notes draft

简体中文

HomePlay 1.0.5

这个版本修掉两个会让人用不下去的问题。

1. CarPlay 连着的时候关掉桌宠,iPhone 之后就再也连不上

1.0.3 和 1.0.4 在桌宠关闭后会让接收器退出,但退得太快:Mac 的蓝牙服务来不及拆掉那条连接,留下一条没人收拾的通道。之后 iPhone 就不再接受这台 Mac 的连接,只能重开 iPhone、再重启 Mac 蓝牙才救得回来。

1.0.5 在退出前先断开手机的蓝牙连接、多等 1.5 秒;同时不再在桌宠关掉时撤掉蓝牙广播——会话还在的时候把自己从车机服务里撤掉,iPhone 会以为配件不见了。桌宠关掉后接收器改为继续常驻。

实测:连续关闭再打开桌宠 3 轮,连接一次都没断;重启接收器 5 秒内连回;Mac 蓝牙日志里每次退出都收得干净。

2. Mac mini/Studio Display 上按「跟随我」会闪退

外接相机只提供离散帧率(15 fps 实际上是 15.000015…),旧代码按区间筛选抓不到任何格式,接着无条件设置帧间隔,AVFoundation 抛异常,App 直接结束。现在改成带容差比较,改用格式自己的帧间隔;没有内建相机时用系统偏好的相机;外接相机被拔掉会重新找一台。

要知道的

  • 桌宠关掉后接收器会继续运行(不再自动退出)。这样做是为了连接稳定;代价是附近的 iPhone 可能会看到这台 Mac 在广播车机服务。
  • 如果你已经在 1.0.4 遇到「连不上」:重开 iPhone 并重启 Mac 蓝牙,再升级到这个版本。

English

HomePlay 1.0.5

This release fixes two problems that made the app unusable.

1. Closing the pet while CarPlay was connected locked the iPhone out

1.0.3 and 1.0.4 quit the receiver when the pet closed, but quit too fast: the Mac's Bluetooth service never tore the connection down, so an orphaned channel was left behind. After that the iPhone stopped accepting connections from this Mac — only rebooting the iPhone and restarting Mac Bluetooth brought it back.

1.0.5 disconnects the phone's Bluetooth link before exiting and waits 1.5 seconds, and it no longer withdraws the Bluetooth advertisement while the pet is closed — pulling the car-machine service out from under a live session makes the iPhone think the accessory is gone. The receiver now stays up when the pet closes.

Tested: three rounds of closing and reopening the pet with no dropped connection, reconnects within 5 seconds after a receiver restart, and a clean disconnect in the Mac Bluetooth log every time.

2. "Follow me" crashed on Mac mini / Studio Display

An external camera only offers discrete frame rates (15 fps is really 15.000015…). The old code matched no format by range, then set the frame interval unconditionally, AVFoundation raised, and the app exited. It now compares with a tolerance and uses the format's own frame interval, falls back to the system-preferred camera when there is no built-in one, and finds a new camera when an external one is unplugged.

Note

  • The receiver keeps running after the pet closes (it no longer exits by itself). That is deliberate, for connection stability; nearby iPhones may see this Mac advertising the car-machine service.
  • If 1.0.4 already locked you out: reboot the iPhone and restart Mac Bluetooth, then update to this build.