Options
All
  • Public
  • Public/Protected
  • All
Menu

Module service/webinar

Index

Type aliases

CreateLiveUserOptions

CreateLiveUserOptions: { email: string; headImg: string; nickName: string; webinarId: string }

创建用户的入参

Type declaration

  • email: string
  • headImg: string
  • nickName: string
  • webinarId: string

WebinarHistoryType

WebinarHistoryType: "playback" | "discuss" | "webcast"

playback 回放,discuss 评轮,webcast 直播

WebinarProvider

WebinarProvider: "VHall" | "Mudu"

Functions

CreateLiveUser

  • Parameters

    Returns Promise<{ ret?: { email: string; thirdUserId: string }; statusCode: ReturnCode }>

getMuduKey

  • getMuduKey(uaId?: string, assignId?: string, freeLogin?: undefined | 0 | 1): Promise<{ code: ReturnCode; detail: { key: string } }>
  • 获取mudu身份赋予的token

    Parameters

    • uaId: string = config.uaId
    • Optional assignId: string
    • freeLogin: undefined | 0 | 1 = 0

    Returns Promise<{ code: ReturnCode; detail: { key: string } }>

getPolyvKey

  • getPolyvKey(uaId?: string, params: { sign: string; ts: string; userId: string }, freeLogin?: undefined | 0 | 1): Promise<{ code: ReturnCode; detail?: { key: string } }>
  • 获取保利威sign

    Parameters

    • uaId: string = config.uaId
    • params: { sign: string; ts: string; userId: string }
      • sign: string
      • ts: string
      • userId: string
    • freeLogin: undefined | 0 | 1 = 0

    Returns Promise<{ code: ReturnCode; detail?: { key: string } }>

getSelfWebinarHistory

  • getSelfWebinarHistory(): Promise<{ description: null; id: string; name: null | string; provider: WebinarProvider; relateId: string; title: string; watchHistories: { duration: string; endTime: string; ip: string; message: string; onlineTime: string; platform: string; startTime: string; type: WebinarHistoryType; watchTime: string }[] }[]>
  • 获取当前用户的观看记录

    Returns Promise<{ description: null; id: string; name: null | string; provider: WebinarProvider; relateId: string; title: string; watchHistories: { duration: string; endTime: string; ip: string; message: string; onlineTime: string; platform: string; startTime: string; type: WebinarHistoryType; watchTime: string }[] }[]>

siteApi

  • siteApi(target: string, data?: any, freeLogin?: undefined | 0 | 1): Promise<any>
  • site 的代理接口

    Parameters

    • target: string

      请求路由

    • Optional data: any
    • freeLogin: undefined | 0 | 1 = 0

    Returns Promise<any>

Generated using TypeDoc