feat(site): rotate poster time (#1153)

This commit is contained in:
Steve Heffernan
2026-04-03 00:14:55 -07:00
committed by GitHub
parent 8b571f5f05
commit 4ae510e716
+3 -1
View File
@@ -6,7 +6,9 @@ import HeroVideo from '@/components/home/HeroVideo';
import SkinControl from '@/components/home/SkinControl';
import { MUX_URL, VJS10_DEMO_VIDEO } from '@/consts';
const poster = `${VJS10_DEMO_VIDEO.poster}?time=0`;
const times = [0, 12.9, 17.61, 15.8, 7.72, 4.8, 3.3];
const posterTime = times[Math.floor(Math.random() * times.length)];
const poster = `${VJS10_DEMO_VIDEO.poster}?time=${posterTime}`;
---
<link