openfree commited on
Commit
3bbaaa3
·
verified ·
1 Parent(s): 5aebe57

feat: 영상 순서 스왑 — MP4 자동재생 상단, YouTube 하단

Browse files
Files changed (1) hide show
  1. index.html +25 -25
index.html CHANGED
@@ -259,17 +259,29 @@ footer{background:var(--text);color:#94A3B8;padding:44px 0 28px;margin-top:72px}
259
  </div>
260
  </div>
261
 
262
- <!-- YouTube 소개 영상 -->
263
  <div class="container" style="padding-top:40px;padding-bottom:0">
264
  <div style="max-width:820px;margin:0 auto;border-radius:14px;overflow:hidden;box-shadow:0 16px 48px rgba(99,102,241,.18)">
265
- <div style="position:relative;padding-bottom:56.25%;height:0;background:#000">
266
- <iframe src="https://www.youtube.com/embed/ICRUj3ZqP2E"
267
- style="position:absolute;top:0;left:0;width:100%;height:100%;border:none"
268
- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
269
- allowfullscreen loading="lazy"></iframe>
270
- </div>
271
  </div>
272
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
 
274
  <div class="container">
275
  <div class="section-sm">
@@ -352,26 +364,14 @@ footer{background:var(--text);color:#94A3B8;padding:44px 0 28px;margin-top:72px}
352
  <h2>비드래프트 소개 영상</h2>
353
  <p>Darwin 플랫폼과 AETHER의 기술적 혁신을 영상으로 확인하세요</p>
354
  <div class="vid-box">
355
- <video id="heroVideo" autoplay muted playsinline preload="auto" controls
356
- src="https://vidraft-ai.static.hf.space/VD1.mp4">
357
- </video>
 
 
 
358
  </div>
359
  </div>
360
- <script>
361
- (function(){
362
- var v = document.getElementById('heroVideo');
363
- var list = [
364
- 'https://vidraft-ai.static.hf.space/VD1.mp4',
365
- 'https://vidraft-ai.static.hf.space/vd2.mp4'
366
- ];
367
- var idx = 0;
368
- v.addEventListener('ended', function(){
369
- idx = (idx + 1) % list.length;
370
- v.src = list[idx];
371
- v.play();
372
- });
373
- })();
374
- </script>
375
  </div>
376
  </div>
377
 
 
259
  </div>
260
  </div>
261
 
262
+ <!-- MP4 소개 영상 — 히어로 직후 자동재생 -->
263
  <div class="container" style="padding-top:40px;padding-bottom:0">
264
  <div style="max-width:820px;margin:0 auto;border-radius:14px;overflow:hidden;box-shadow:0 16px 48px rgba(99,102,241,.18)">
265
+ <video id="heroVideo" autoplay muted playsinline preload="auto" controls
266
+ style="width:100%;display:block;background:#000"
267
+ src="https://vidraft-ai.static.hf.space/VD1.mp4"></video>
 
 
 
268
  </div>
269
  </div>
270
+ <script>
271
+ (function(){
272
+ var v = document.getElementById('heroVideo');
273
+ var list = [
274
+ 'https://vidraft-ai.static.hf.space/VD1.mp4',
275
+ 'https://vidraft-ai.static.hf.space/vd2.mp4'
276
+ ];
277
+ var idx = 0;
278
+ v.addEventListener('ended', function(){
279
+ idx = (idx + 1) % list.length;
280
+ v.src = list[idx];
281
+ v.play();
282
+ });
283
+ })();
284
+ </script>
285
 
286
  <div class="container">
287
  <div class="section-sm">
 
364
  <h2>비드래프트 소개 영상</h2>
365
  <p>Darwin 플랫폼과 AETHER의 기술적 혁신을 영상으로 확인하세요</p>
366
  <div class="vid-box">
367
+ <div style="position:relative;padding-bottom:56.25%;height:0">
368
+ <iframe src="https://www.youtube.com/embed/ICRUj3ZqP2E?autoplay=1&mute=1&loop=1&playlist=ICRUj3ZqP2E"
369
+ style="position:absolute;top:0;left:0;width:100%;height:100%;border:none"
370
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
371
+ allowfullscreen></iframe>
372
+ </div>
373
  </div>
374
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  </div>
376
  </div>
377