适用版本: @plasosdk/plaso-electron-sdk≥ 1.3.18
createLiveClassWindow、classOptions 和资料能力。唯一接入差异是服务端生成课堂 query 时必须加入 d_lowLatencyClass=1,并参与签名。d_lowLatencyClass=1 的签名 query 调用 createLiveClassWindow 启动极速课堂。除该字段外,流程与 实时课堂/Electron 完全一致。appId 与 appKey,以及业务服务端的课堂 query 接口。课堂 ID、用户角色等由业务侧自行定义;🔒 appKey 只能保存在服务端,不能写入客户端。initRemoteMain,渲染进程 window.require 同一份 SDK。完整步骤见 初始化与配置。| 参数 | 类型 | 必填 | 取值 | 说明 |
|---|---|---|---|---|
d_lowLatencyClass | number | 是 | 1 | 标识以极速课堂模式进入;必须参与服务端签名 |
d_lowLatencyClass=1 决定进入极速课堂:// 业务后端接口(非 SDK API):生成包含 d_lowLatencyClass=1 的签名 query
const query = await api.createPlasoLiveQuery({ meetingId: 'demo-001', userType: 'speaker', d_lowLatencyClass: 1 });
const code = PlasoElectronSdk.createLiveClassWindow({ classOptions: { query } });classOptions、回调与关闭窗口见 实时课堂/Electron §4、§5。通用窗口参数见 初始化与配置 §5、§6。supportShowResourceCenter = true,在窗口就绪后 insertObject,并以 onGetExtFileNameFn / onGetPreParseFileNameFn 处理以 info 方式插入的资源。完整流程见:initRemoteMain,渲染进程与宿主共用同一份 @electron/remote。d_lowLatencyClass=1,该字段已参与签名。info 方式插入的私有资料或预解析课件时,已实现对应 URL 回调。