Browse Source

playerContainer

deepsea 1 year ago
parent
commit
658c48fef0
1 changed files with 2 additions and 0 deletions
  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();