seawolf2357 commited on
Commit
38a3bbf
ยท
verified ยท
1 Parent(s): 7b53c4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -398,7 +398,7 @@ var container=document.getElementById('hiddenMedia');
398
  if(type==='video'){{
399
  var v=document.createElement('video');
400
  v.src=url;
401
- v.muted=true;
402
  v.playsInline=true;
403
  v.preload='auto';
404
  v.crossOrigin='anonymous';
@@ -1059,15 +1059,15 @@ blurCanvas.width=16;blurCanvas.height=16;
1059
  var blurCtx=blurCanvas.getContext('2d');
1060
 
1061
  // ๋ชจ๋“  ๋น„๋””์˜ค๋ฅผ ์ฒ˜์Œ์œผ๋กœ ๋˜๋Œ๋ฆฌ๊ณ  ์žฌ์ƒ
1062
- var videoClips=S.clips.filter(function(c){{return c.type==='video'}});
1063
  videoClips.forEach(function(vc){{
1064
  var el=S.els[vc.mid];
1065
  if(el){{
1066
  el.currentTime=vc.ts;
1067
- el.muted=true;
1068
  }}
1069
  }});
1070
 
 
1071
  // ์ž ์‹œ ๋Œ€๊ธฐ ํ›„ ์žฌ์ƒ ์‹œ์ž‘
1072
  await new Promise(function(r){{setTimeout(r,200)}});
1073
 
 
398
  if(type==='video'){{
399
  var v=document.createElement('video');
400
  v.src=url;
401
+ v.muted=false;
402
  v.playsInline=true;
403
  v.preload='auto';
404
  v.crossOrigin='anonymous';
 
1059
  var blurCtx=blurCanvas.getContext('2d');
1060
 
1061
  // ๋ชจ๋“  ๋น„๋””์˜ค๋ฅผ ์ฒ˜์Œ์œผ๋กœ ๋˜๋Œ๋ฆฌ๊ณ  ์žฌ์ƒ
 
1062
  videoClips.forEach(function(vc){{
1063
  var el=S.els[vc.mid];
1064
  if(el){{
1065
  el.currentTime=vc.ts;
1066
+ el.muted=true; // ๋‚ด๋ณด๋‚ด๊ธฐ ์ค‘์—๋งŒ ์Œ์†Œ๊ฑฐ (์ •์ƒ)
1067
  }}
1068
  }});
1069
 
1070
+
1071
  // ์ž ์‹œ ๋Œ€๊ธฐ ํ›„ ์žฌ์ƒ ์‹œ์ž‘
1072
  await new Promise(function(r){{setTimeout(r,200)}});
1073