mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): rotate poster time (#1153)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user