|
@@ -345,7 +345,8 @@ window.initHot = function(model){
|
|
|
|
|
|
|
|
|
this.texMedia = video;
|
|
|
-
|
|
|
+ this.updateMute()
|
|
|
+
|
|
|
video.oncanplaythrough = ()=> {
|
|
|
if(this.texMedia == video){
|
|
|
this.material_.map.needsUpdate = !0
|
|
@@ -354,7 +355,7 @@ window.initHot = function(model){
|
|
|
}
|
|
|
|
|
|
|
|
|
- video.volume = 0
|
|
|
+
|
|
|
video.muted = !!manage.bgmShouldPlay//true
|
|
|
video.currentTime = 0
|
|
|
|
|
@@ -990,8 +991,9 @@ window.initHot = function(model){
|
|
|
|
|
|
|
|
|
updateMute(){
|
|
|
- if(this.texType == 'video'){
|
|
|
- this.texMedia && (this.texMedia.muted = !!manage.bgmShouldPlay)//true
|
|
|
+ if(this.texType == 'video' && this.texMedia){
|
|
|
+ this.texMedia.muted = !!manage.bgmShouldPlay
|
|
|
+ this.texMedia.volume = manage.bgmShouldPlay ? 0 : 1
|
|
|
}
|
|
|
}
|
|
|
|