瀏覽代碼

playerContainer

deepsea 1 年之前
父節點
當前提交
658c48fef0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/uwb-sample.js

+ 2 - 0
src/uwb-sample.js

@@ -337,6 +337,8 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
       console.log("模型加载出错");
     } else {
       let HousePlay = HOUSEPLAY.HousePlay;
+      let playerContainer = document.getElementById(domId)
+      data.container = playerContainer;
       sdkInstance = new HousePlay(data);
       window.sdkInstance = sdkInstance;
       sdkInstance.start();