Pārlūkot izejas kodu

playerContainer

deepsea 1 gadu atpakaļ
vecāks
revīzija
658c48fef0
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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();