Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

_appKey

_appKey: string

_core

_core: RTCCore

_localStream

_localStream: RTCStream

_participantMap

_participantMap: {}

Type declaration

_recorder

_recorder: WebMediaRecorder

_remoteStream

_remoteStream: RTCStream

_remoteStreamMap

_remoteStreamMap: {}

Type declaration

_revoke

_revoke: () => void

Type declaration

    • (): void
    • Returns void

_selfParticipant

_selfParticipant: ConferenceParticipant

_state

_taskQueue

_taskQueue: TaskQueue

_videoLayout

_videoLayout: VideoLayout

clientInfo

clientInfo: any

confProps

destinations

destinations: SocketDestinations

listenerMap

listenerMap: {}

Type declaration

socket

Static reporter

reporter: Reporter = new Reporter('RTCConference')

Accessors

core

participantMap

  • get participantMap(): {}

recorder

selfParticipant

state

videoLayout

Methods

Private _clientInit

  • _clientInit(): (Anonymous function)
  • 初始化方法

    Returns (Anonymous function)

Private _destroy

  • _destroy(): Promise<any>
  • Returns Promise<any>

_dispatcherr

  • _dispatcherr(err: any): void
  • Parameters

    • err: any

    Returns void

Private _dispatchice

  • _dispatchice(ice: any): void
  • 处理 ice 消息

    Parameters

    • ice: any

    Returns void

Private _dispatchmsg

  • _dispatchmsg(msg: any): void
  • 处理信令消息

    Parameters

    • msg: any

    Returns void

Private _dispatchsdp

  • _dispatchsdp(sdp: any): void
  • 处理 sdp 消息

    Parameters

    • sdp: any

    Returns void

Private _sendSignalling

  • _sendSignalling(signal: string | Object, options?: { destination?: string; isNewFormat?: boolean; isPlainText?: boolean; type?: "msg" | "ice" | "sdp" | "cmd" }): Promise<any>
  • 发送信令消息, 可指定发送的目的地

    Parameters

    • signal: string | Object

      信令消息

    • Default value options: { destination?: string; isNewFormat?: boolean; isPlainText?: boolean; type?: "msg" | "ice" | "sdp" | "cmd" } = {}
      • Optional destination?: string
      • Optional isNewFormat?: boolean
      • Optional isPlainText?: boolean
      • Optional type?: "msg" | "ice" | "sdp" | "cmd"

    Returns Promise<any>

addEventListener

addEventListeners

clearListener

  • clearListener(): void

destroy

  • destroy(): void

disableAudioOutput

  • disableAudioOutput(): Promise<any>

disableUploadAudioStream

  • disableUploadAudioStream(): Promise<any>

disableUploadVideoStream

  • disableUploadVideoStream(): Promise<any>

dispatchEvent

  • dispatchEvent(event: Event): boolean

dispatchEventLite

enableAudioOutput

  • enableAudioOutput(): Promise<any>

enableSketchpadCapture

  • enableSketchpadCapture(sketchpad: RTCSketchpad): Promise<any>

enableUploadAudioStream

  • enableUploadAudioStream(): Promise<any>

enableUploadVideoStream

  • enableUploadVideoStream(): Promise<any>

hasListener

join

leave

  • leave(): Promise<any>

login

  • login(): Promise<any>
  • Returns Promise<any>

query

  • query(channelId: string): Promise<any>
  • Parameters

    • channelId: string

    Returns Promise<any>

removeEventListener

requestVideo

sendMessage

  • sendMessage(type: string, content: string | Object, toUserId?: string | ConferenceParticipant): Promise<any>
  • Parameters

    Returns Promise<any>

setAudioRoute

start

startCameraVideo

  • 开启视频输入设备,如摄像头等。

    失败会使 Promise 处于 rejected 状态,并返回失败原因。失败原因见 StreamErrorType

    Parameters

    • Default value renderType: RenderType = RenderType.CONTAIN

      渲染方式

    Returns Promise<RTCStream>

startVideo

stop

  • stop(): Promise<any>

switchCamera

Object literals

Static DEFAULT_CONFERENCE_PROPS

DEFAULT_CONFERENCE_PROPS: object

accountName

accountName: null = null

appKey

appKey: null = null

cdType

cdType: "meeting" = "meeting"

isCcConf

isCcConf: 0 = 0

isStart

isStart: null = null

mediaType

mediaType: "1" = "1"

mtcConfCapacityKey

mtcConfCapacityKey: number = 100

mtcConfCompositeModeKey

mtcConfCompositeModeKey: number = 5

mtcConfPasswordKey

mtcConfPasswordKey: string = "123456"

mtcConfQualityGradeKey

mtcConfQualityGradeKey: number = 1

mtcConfReplayKey

mtcConfReplayKey: false = false

mtcConfRoleKey

mtcConfRoleKey: ConferenceRole = ConferenceRole.PARTP

mtcConfSecurityKey

mtcConfSecurityKey: number = 0

mtcConfStateKey

mtcConfStateKey: number = 15

nickName

nickName: null = null

password

password: string = "123456"

regionId

regionId: string = "0"

roomId

roomId: null = null

webrtcVersion

webrtcVersion: "2.0" = "2.0"

Static DEFAULT_EVENT_LISTENER_OPTIONS

DEFAULT_EVENT_LISTENER_OPTIONS: object

once

once: false = false

Static DEFAULT_SOCKET_DESTINATIONS

DEFAULT_SOCKET_DESTINATIONS: object

close

close: string = "/acd/close"

createConference

createConference: string = "/acd/meeting/start"

Generated using TypeDoc