Class NEGroupCall

Hierarchy

  • EventEmitter<NEGroupCallEvents>
    • NEGroupCall

Constructors

Properties

callStatus: number = 0
rtcController: RTCController
instance?: NEGroupCall
prefixed: string | boolean

Methods

  • Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

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

          • Rest ...args: ArgumentMap<NEGroupCallEvents>[Extract<T, keyof NEGroupCallEvents>]

          Returns void

    • Optional context: any

    Returns NEGroupCall

  • 销毁实例

    Returns void

  • Calls each of the listeners registered for a given event.

    Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

    • event: T
    • Rest ...args: ArgumentMap<NEGroupCallEvents>[Extract<T, keyof NEGroupCallEvents>]

    Returns boolean

  • 开关本地音频

    Parameters

    • enabled: boolean

      true开启,false关闭

    Returns Promise<void>

  • 开关本地视频

    Parameters

    • enabled: boolean

      true开启,false关闭

    Returns Promise<void>

  • Return an array listing the events for which the emitter has registered listeners.

    Returns (keyof NEGroupCallEvents)[]

  • 接收群组呼叫

    Returns Promise<NEGroupCallAcceptRes>

  • 挂断群组通话

    Returns Promise<void>

  • 加入群组通话

    Parameters

    • params: {
          callId: string;
          rtcUid?: number;
      }
      • callId: string

        群组呼叫id

      • Optional rtcUid?: number

        加入群组通话的用户uid

    Returns Promise<NEGroupCallCallRes>

  • 查询通话信息

    Parameters

    • Optional params: {
          callId: string;
      }
      • callId: string

        通话id

    Returns Promise<NEGroupCallQueryInfo>

  • 本端加入rtc房间,需要

    Parameters

    • Optional opt: {
          video?: boolean;
      }

      video: 加入时是否开启视频

      • Optional video?: boolean

    Returns Promise<void>

  • Return the number of listeners listening to a given event.

    Parameters

    • event: keyof NEGroupCallEvents

    Returns number

  • Return the listeners registered for a given event.

    Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

    • event: T

    Returns ((...args) => void)[]

  • Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

    • event: T
    • Optional fn: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ArgumentMap<NEGroupCallEvents>[Extract<T, keyof NEGroupCallEvents>]

          Returns void

    • Optional context: any
    • Optional once: boolean

    Returns NEGroupCall

  • Add a listener for a given event.

    Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

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

          • Rest ...args: ArgumentMap<NEGroupCallEvents>[Extract<T, keyof NEGroupCallEvents>]

          Returns void

    • Optional context: any

    Returns NEGroupCall

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

    Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

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

          • Rest ...args: ArgumentMap<NEGroupCallEvents>[Extract<T, keyof NEGroupCallEvents>]

          Returns void

    • Optional context: any

    Returns NEGroupCall

  • 用于接收im自定义消息

    Parameters

    • msg: string

      im onmsg 事件参数

    Returns boolean

  • Remove all listeners, or those of the specified event.

    Parameters

    • Optional event: keyof NEGroupCallEvents

    Returns NEGroupCall

  • Remove the listeners of a given event.

    Type Parameters

    • T extends keyof NEGroupCallEvents

    Parameters

    • event: T
    • Optional fn: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ArgumentMap<NEGroupCallEvents>[Extract<T, keyof NEGroupCallEvents>]

          Returns void

    • Optional context: any
    • Optional once: boolean

    Returns NEGroupCall

  • 设置用户视图

    Parameters

    • view: HTMLElement

      视频渲染容器

    • accId: string

      im id

    Returns void

Generated using TypeDoc