Explorar o código

playerContainer

deepsea hai 1 ano
pai
achega
658c48fef0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();