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

_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

destinations

destinations: SocketDestinations

guestCDProps

guestCDProps: GuestCDProps

listenerMap

listenerMap: {}

Type declaration

socket

Static reporter

reporter: Reporter = new Reporter('RTCGuest')

Accessors

participantMap

  • get participantMap(): {}

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; needAck?: boolean; type?: "msg" | "ice" | "sdp" | "cmd" }): Promise<any>
  • 发送信令消息, 可指定发送的目的地

    Parameters

    • signal: string | Object

      信令消息

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

    Returns Promise<any>

addEventListener

addEventListeners

call

  • Parameters

    Returns Promise<any>

clearListener

  • clearListener(): void

disableAudioOutput

  • disableAudioOutput(): Promise<any>

disableUploadAudioStream

  • disableUploadAudioStream(): Promise<any>

disableUploadVideoStream

  • disableUploadVideoStream(): Promise<any>

dispatchEvent

  • dispatchEvent(event: Event): boolean

dispatchEventLite

enableAudioOutput

  • enableAudioOutput(): Promise<any>

enableUploadAudioStream

  • enableUploadAudioStream(): Promise<any>

enableUploadVideoStream

  • enableUploadVideoStream(): Promise<any>

hasListener

listAllGroups

login

logout

  • logout(): Promise<any>

oneToOneCall

  • oneToOneCall(userId: string, callParam?: GuestCallParam): Promise<any>
  • Parameters

    Returns Promise<any>

removeEventListener

requestUrgent

  • requestUrgent(): Promise<any>

requestVideo

sendMessage

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

    Returns Promise<any>

setAudioRoute

setRatio

  • setRatio(ratio: number): any
  • Parameters

    • ratio: number

    Returns any

setRequestVideo

startCameraVideo

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

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

    Parameters

    • Default value renderType: RenderType = RenderType.CONTAIN

      渲染方式

    Returns Promise<RTCStream>

startVideo

switchCamera

term

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

Object literals

Static DEFAULT_EVENT_LISTENER_OPTIONS

DEFAULT_EVENT_LISTENER_OPTIONS: object

once

once: false = false

Static DEFAULT_GUEST_PROPS

DEFAULT_GUEST_PROPS: object

accountName

accountName: null = null

appKey

appKey: null = null

cdType

cdType: "Guest" = "Guest"

jmdsType

jmdsType: "JSM.JMDS.CallCenter" = "JSM.JMDS.CallCenter"

mediaType

mediaType: "1" = "1"

mtcConfCapacityKey

mtcConfCapacityKey: number = 100

mtcConfCompositeModeKey

mtcConfCompositeModeKey: number = 5

mtcConfPasswordKey

mtcConfPasswordKey: string = "123456"

mtcConfQualityGradeKey

mtcConfQualityGradeKey: number = 1

mtcConfRoleKey

mtcConfRoleKey: number = 4

mtcConfSecurityKey

mtcConfSecurityKey: number = 0

mtcConfStateKey

mtcConfStateKey: number = 3

nickName

nickName: null = null

regionId

regionId: string = "0"

Static DEFAULT_SOCKET_DESTINATIONS

DEFAULT_SOCKET_DESTINATIONS: object

businessList

businessList: string = "/acd/tel_nums"

close

close: string = "/acd/close"

createConference

createConference: string = "/acd/guest/conference"

Generated using TypeDoc