Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DivaWebRtcConstructorOptions

DIVA 客户端的云渲染模式构造参数选项。

deprecated

为了提升开发体验,给好的支持 DIVA 的多种工作模式, 请尽快迁移至使用适配器构造的参数选项:

const diva = new Diva({ uri, apiKey, container });
// 将上述旧代码迁移至新的参数构造方法
const adapter = new WebRtcAdapter(uri, container);
const diva = new Diva({ apiKey, adapter });

该构造方法将在下一次大版本更新时删除。

Hierarchy

  • DivaWebRtcConstructorOptions

Index

Properties

Properties

apiKey

apiKey: string

SDK 的 API 调用密钥。

container

container: HTMLElement

用于绘制 Diva 世界画面的 DOM 占位元素。

uri

uri: string

Diva 服务端的 URI。