文档

​
​

Development

User Acquisition

Monetization

工业

Vivox Unity SDK

Vivox Unity SDK

Vivox
​
​
Vivox Unity SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
    • Set up your project
    • Create voice and text channels
      • Channel management
      • Channel name criteria
      • Channel types
      • Positional channels
      • Channel identifiers for large scale games
      • Participant management
      • Join a channel
      • Leave a channel
      • Channel webhooks
      • Automatic connection recovery
    • Messaging
    • Player management
    • Device management
    • Audio management
    • Mobile development
    • Text-to-speech
    • Speech-to-text
    • Real-time recording
    • Server-side-recording
    • Troubleshooting
  • Tutorials
  • Reference
  1. Vivox Unity SDK 文档
  2. Vivox Unity 开发者指南
  3. 频道

自动连接恢复

Monitor automatic connection recovery for players.
阅读时间1 分钟
最后更新于 8 个月前

注意
Android、iOS、macOS 和 Windows 上支持自动连接恢复。
当应用程序用户在两个互联网连接点之间移动时,应用程序可能临时失去互联网连接。例如,当用户在蜂窝网络之间漫游时,或者当设备在 LTE 移动数据连接与家庭无线网络连接之间切换时,可能会发生断开连接的情况。
Vivox SDK 为 30 秒以内的断网提供网络连接恢复功能。
VivoxService.Instance.ConnectionRecovering
和
VivoxService.Instance.ConnectionRecovered
可以订阅的事件,用于跟踪连接何时被识别为中断并开始恢复以及连接何时完成恢复。
如果在应用程序尝试重新连接到网络以后会话未能恢复,则会触发一个
VivoxService.Instance.ConnectionFailedToRecover
事件。
注意
重要:如果存在一个额外系统用于重新连接用户,必须允许默认 Vivox 系统完成恢复尝试,然后再由另一个系统尝试恢复连接。如果 Vivox 尝试未完成,可能产生连接恢复循环。

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。


    报告此页面的问题