云端渲染数字人

Hierarchy (view full)

Constructors

Properties

_authParams?: TYRTCAuthParams
_curDialogId: string = ''
_curState: TYVoiceChatState = TYVoiceChatState.Idle
_initializeData?: IAvatarResponseData
_isReadyTimer?: Timeout
_localMicMuted: boolean = false
_requestConfig: TYRequestConfig = ...
_requestId: string = ''
_rtc: Rtc = ...
prefixed: string | boolean

Methods

  • Parameters

    • uid: string
    • msg: {
          data: ArrayBuffer;
      }
      • data: ArrayBuffer

    Returns any

  • Returns Promise<undefined | IAvatarResponseData>

  • Type Parameters

    Parameters

    • event: T
    • Optionalfn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Add a listener for a given event.

    Type Parameters

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Add a one-time listener for a given event.

    Type Parameters

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Parameters

    • func: ((time: number) => void)
        • (time): void
        • Parameters

          • time: number

          Returns void

    Returns void

  • Parameters

    • func: (() => void)
        • (): void
        • Returns void

    Returns void

  • Remove the listeners of a given event.

    Type Parameters

    Parameters

    • event: T
    • Optionalfn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Parameters

    • rootContainer: string | HTMLVideoElement

    Returns void

  • Returns Promise<void>