Properties

activity: Record<string, AVSettingsData> = {}

Stores the transient AV activity data received from other users.

AV_MODES: {
    DISABLED: number;
    AUDIO: number;
    VIDEO: number;
    AUDIO_VIDEO: number;
} = ...

WebRTC Mode, Disabled, Audio only, Video only, Audio & Video

Type declaration

  • DISABLED: number
  • AUDIO: number
  • VIDEO: number
  • AUDIO_VIDEO: number
VOICE_MODES: {
    ALWAYS: string;
    ACTIVITY: string;
    PTT: string;
} = ...

Voice modes: Always-broadcasting, voice-level triggered, push-to-talk.

Type declaration

  • ALWAYS: string
  • ACTIVITY: string
  • PTT: string
NAMEPLATE_MODES: {
    OFF: number;
    BOTH: number;
    PLAYER_ONLY: number;
    CHAR_ONLY: number;
} = ...

Displayed nameplate options: Off entirely, animate between player and character name, player name only, character name only.

Type declaration

  • OFF: number
  • BOTH: number
  • PLAYER_ONLY: number
  • CHAR_ONLY: number
DOCK_POSITIONS: {
    TOP: string;
    RIGHT: string;
    BOTTOM: string;
    LEFT: string;
} = ...

AV dock positions.

Type declaration

  • TOP: string
  • RIGHT: string
  • BOTTOM: string
  • LEFT: string
DEFAULT_CLIENT_SETTINGS: object = ...

Default client AV settings.

DEFAULT_WORLD_SETTINGS: object = ...

Default world-level AV settings.

DEFAULT_USER_SETTINGS: object = ...

Default client settings for each connected user.

Accessors

  • get users(): object
  • Return a mapping of AV settings for each game User.

    Returns object

  • get verticalDock(): boolean
  • A helper to determine if the dock is configured in a vertical position.

    Returns boolean

Methods

  • Handle another connected user changing their AV settings.

    Parameters

    Returns void

  • Private

    Prepare a standardized object of user settings data for a single User

    Parameters

    • user: any

    Returns object

  • Private

    Handle setting changes to either rctClientSettings or rtcWorldSettings.

    Returns void