Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace JuphoonRTCGuest

Index

Variables

Const reporter

reporter: Reporter = new Reporter('JuphoonRTCGuest')

Const tokenMap

tokenMap: {}

Type declaration

  • [key: string]: string

Functions

createGuestClient

  • createGuestClient(appKey: string, token: string, socketAddress?: string): RTCGuest
  • 创建会议客户端

    Parameters

    • appKey: string

      appKey

    • token: string

      自行获取到的token

    • Optional socketAddress: string

      WebSocket的连接地址

    Returns RTCGuest

getMediaDevices

getToken

  • getToken(url: string): Promise<any>
  • 获取用于WebSocket校验的token

    Parameters

    • url: string

      获取token的http地址

    Returns Promise<any>

getVersion

  • getVersion(): any
  • desc

    获取SDK版本信息

    Returns any

setConfig

  • setConfig(_config: { address: string }): void
  • 配置SDK参数

    Parameters

    • _config: { address: string }
      • address: string

        设置服务环境地址. 支持类型 http(s)://IP:PORT. 设置后createGuestClient不再需要传入 socketAddress 参数

    Returns void

Object literals

Const config

config: object

client

client: null = null

envInfo

envInfo: null = null

socket

socket: null = null

userId

userId: null = null

Generated using TypeDoc