Options
All
  • Public
  • Public/Protected
  • All
Menu
property

{boolean} [muted] Whether this user has muted themselves.

property

{boolean} [hidden] Whether this user has hidden their video.

property

{boolean} [speaking] Whether the user is broadcasting audio.

Hierarchy

  • AVSettings

Index

Constructors

Properties

_set: any
_change: any
activity: Object = {}

Stores the transient AV activity data received from other users.

client: any
world: any
_original: any
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: any = ...

Default client AV settings.

DEFAULT_WORLD_SETTINGS: any = ...

Default world-level AV settings.

DEFAULT_USER_SETTINGS: any = ...

Default client settings for each connected user.

Methods

  • initialize(): void
  • Returns void

  • changed(): any
  • Returns any

  • get(scope: any, setting: any): any
  • Parameters

    • scope: any
    • setting: any

    Returns any

  • getUser(userId: any): any
  • Parameters

    • userId: any

    Returns any

  • set(scope: any, setting: any, value: any): void
  • Parameters

    • scope: any
    • setting: any
    • value: any

    Returns void

  • Handle another connected user changing their AV settings.

    Parameters

    Returns void

  • _getUserSettings(user: any): any
  • Prepare a standardized object of user settings data for a single User

    Parameters

    • user: any

    Returns any

  • _onSettingsChanged(): void
  • Handle setting changes to either rctClientSettings or rtcWorldSettings.

    Returns void

Accessors

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

    Returns any

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

    Returns boolean