퀴즈 중 새로고침해도 이어서: 같은 계정이 돌아오면 노래가 나오는 중엔 catchup(서버 시작 시각·위치)으로 소리 끈 채 맞춰 두고 '참가 (소리 켜기)' 누르는 순간 같은 위치에서 재생(다른 사람은 안 멈춤), 준비 중엔 prepare를 다시 보내 그 사람을 기다림(예전엔 문제가 멈출 수 있었음). 지금 문제 정답도 인정. 방장은 끊겨도 15초 유지 후 넘김. 늦게 시작한 play는 지금 위치부터
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -155,6 +155,11 @@ export type ServerMessage =
|
||||
| { t: 'play'; code: string; n: number; startAt: number; atSec: number; endSec: number | null }
|
||||
/** Stop now (someone is buffering / the host paused / the clip is over). */
|
||||
| { t: 'pause'; code: string; n: number }
|
||||
/**
|
||||
* Back in a question whose music is running (refresh / reconnect): load `videoId` and play along the running timeline
|
||||
* (position `atSec` at server time `startAt`); `clipStart` is where the clip began, for the progress bar.
|
||||
*/
|
||||
| { t: 'catchup'; code: string; n: number; videoId: string; clipStart: number; startAt: number; atSec: number; endSec: number | null }
|
||||
| { t: 'typing'; code: string; ids: string[] }
|
||||
| { t: 'saved'; id: number; name: string }
|
||||
/** Recent lines for someone who just joined (or came back). */
|
||||
|
||||
Reference in New Issue
Block a user