|
@@ -135,7 +135,9 @@
|
|
|
// this.attendEvent = attendEvent;
|
|
|
this.starRender = starRender; //对外暴露启动渲染的方法
|
|
|
this.stopRender = stopRender; //对外暴露停止渲染的方法
|
|
|
-
|
|
|
+ if(window.__wxjs_environment === 'miniprogram'){
|
|
|
+ this.navbar.showCapsule = 0;
|
|
|
+ }
|
|
|
function init() {
|
|
|
// 创建相机位置
|
|
|
camera = new THREE.PerspectiveCamera(90, screenWidth / that.canvasHeight, 0.1, 10000);
|
|
@@ -207,17 +209,17 @@
|
|
|
}, false)
|
|
|
}
|
|
|
var guideMask = document.querySelector('#guide-mask');
|
|
|
- document.addEventListener("touchstart", function () {
|
|
|
+ document.addEventListener("touchend", function () {
|
|
|
guideMask.classList.add('guide-mask-hide');
|
|
|
if(!that.isIOS && that.hasOneTouch==false){
|
|
|
that.hasOneTouch = true;
|
|
|
- setTimeout(()=>{
|
|
|
+ // setTimeout(()=>{
|
|
|
if(that.type){
|
|
|
moreTest()
|
|
|
}else{
|
|
|
videoHandle({videoUrl:that.videoUrl,coordinate:that.coordinate});
|
|
|
}
|
|
|
- },500)
|
|
|
+ // },2000)
|
|
|
}
|
|
|
}, false);
|
|
|
}
|
|
@@ -265,12 +267,15 @@
|
|
|
video.muted = item.muted;
|
|
|
video.controls = false;
|
|
|
video.autoplay = true;
|
|
|
+ video.preload = 'auto';
|
|
|
video.setAttribute('webkit-playsinline', true);
|
|
|
video.setAttribute('playsinline', true);
|
|
|
video.load();
|
|
|
+
|
|
|
+ console.warn("***video***",video,video.width);
|
|
|
+
|
|
|
setTimeout(()=>{
|
|
|
video.play();
|
|
|
- console.warn("***video***",video,video.width);
|
|
|
// 创建视频纹理
|
|
|
var videoTexture = new THREE.VideoTexture(video);
|
|
|
// videoTexture.minFilter = THREE.LinearFilter;
|
|
@@ -454,7 +459,7 @@
|
|
|
// mesh.lookAt(camera.position);
|
|
|
scene.add(mesh);
|
|
|
videoMeshGroup.push(mesh);
|
|
|
- },500)
|
|
|
+ },1000)
|
|
|
|
|
|
// videoMesh = mesh;
|
|
|
}
|