频道类型
Learn about the different types of Vivox channels available.
阅读时间2 分钟最后更新于 13 天前
Vivox 使用以下类型的频道: 频道类型由用于发起频道加入的方法表示。
JoinEchoChannelAsyncJoinGroupChannelAsycJoinPositionalChannelAsync回声频道
使用JoinEchoChannelAsyncJoinEchoChannelAsync("TestChannel", ChatCapability.AudioOnly)群组频道
使用JoinGroupChannelAsyncJoinGroupChannelAsync("TestChannel", ChatCapability.TextAndAudio)位置频道
使用JoinPositionalChannelAsync开发者可以使用这些频道实现融入到世界中的语音聊天,而玩家语音的衰减和平移使他们看起来好像是在游戏世界中所处的位置说话。要使此效果起作用,您必须设置用户的位置。有关如何设置玩家位置的说明,请参阅“位置频道配置”页面。您可以使用特定值对位置频道进行参数化,这些值可更改玩家定位如何影响其语音。Channel3DProperties props = new Channel3DProperties() //The Channel3DProperties are set to default values, but might need to be changed based on the wanted scale of your game.JoinPositionalChannelAsync("TestChannel", ChatCapability.TextAndAudio, Channel3DProperties)