// Central knobs for the party player. export const PORT = Number(process.env.PORT) || 3000; // Seconds of overlap between the outgoing and incoming video. // Audio and video crossfade over this whole window. export const OVERLAP_SECONDS = 5; // How fast the player switches when the user jumps around manually. export const HARD_CUT_SECONDS = 0.4; // The video frame takes up this fraction of the screen. export const FRAME_SCALE = 0.3; // Pixels per second the frame drifts across the screen. export const BOUNCE_SPEED = 90; // Selectable fullscreen backgrounds, keyed by the id sent over the socket. export const BACKGROUNDS = { pink: { label: 'Pink', src: '/assets/PLAKAT_A2_pink_426x600mm.png' }, plain: { label: 'Classic', src: '/assets/PLAKAT_A2_426x600mm.png' }, }; export const DEFAULT_BACKGROUND = 'pink';