神岛 API 文档 - ArenaPro版
    Preparing search index...

    GameRTC 类用于管理实时语音通道。

    The GameRTC class is used to manage real-time voice channels.

    Index

    Properties

    Properties

    createChannel: (channelId?: string) => Promise<GameRTCChannel>

    Type declaration

      • (channelId?: string): Promise<GameRTCChannel>
      • Parameters

        • OptionalchannelId: string

        Returns Promise<GameRTCChannel>

    创建一个实时语音通道。

    Creates a real-time voice channel.

    通道 ID,可选参数。如果不提供,系统将自动生成一个唯一的 ID。

    The channel ID, which is an optional parameter. If not provided, the system will automatically generate a unique ID.

    一个 Promise,解析为一个 GameRTCChannel 对象。

    A Promise that resolves to a GameRTCChannel object.