安装
# npm
npm install @netless/sync-box
# yarn
yarn add @netless/sync-box
插入
let plugin = room.getInvisiblePlugin(SyncBox.kind)
if (!plugin) {
plugin = SyncBox.create({ room, width: 1280, height: 720 });
}
const h1 = document.createElement("h1");
h1.innerText = "h1";
plugin.bind(h1);