연령제한 곡 재생: 유튜브가 퍼가기 플레이어에서 막는(오류 150) 연령제한 영상은 서버가 성인 인증된 계정 쿠키로 소리만 받아 두고(/data/audio, yt-dlp) 게임은 그 파일을 숨긴 <audio>로 재생. 찾기는 소리 크기·하이라이트 수집(로그인 없는 페이지의 성인 인증 화면) + 게임 중 오류 시 age-audio 작업이 다시 확인해 되돌림. 받기 전에는 출제 안 함. prepare·catchup에 videoId 대신 문제마다 새 무작위 주소(/api/audio/<토큰>, Range 지원)라 영상 id가 안 보임. 같은 시각 시작·위치 정지·새로고침 이어 듣기·소리 크기(유튜브 -14 보정 없이) 그대로. 관리자 수집 화면·cli age-audio, Dockerfile에 yt-dlp(버전·체크섬 고정), 수집 CLI가 서버 DB 경로를 물려받게(테스트가 기본 DB를 건드리던 것). 실제 크롬 e2e로 받은 음원+유튜브 곡 섞어 재생 확인
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -152,8 +152,9 @@ export type ServerMessage =
|
||||
/**
|
||||
* Load the video muted at `startSec`, buffer, report audio ready (docs/12 Q1).
|
||||
* `gain` (0..1): 소리 크기 맞추기 — the player plays at the listener's volume × gain, so songs sound equally loud.
|
||||
* 연령제한 곡 (YouTube refuses them in embedded players): `audio` is our own file's address and `videoId` is null.
|
||||
*/
|
||||
| { t: 'prepare'; code: string; n: number; videoId: string; startSec: number; endSec: number | null; gain: number }
|
||||
| { t: 'prepare'; code: string; n: number; videoId: string | null; audio: string | null; startSec: number; endSec: number | null; gain: number }
|
||||
/** Everyone unmutes and plays from `atSec` at server time `startAt`; stop at `endSec` by playback position. */
|
||||
| { 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). */
|
||||
@@ -162,7 +163,7 @@ export type ServerMessage =
|
||||
* 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; gain: number }
|
||||
| { t: 'catchup'; code: string; n: number; videoId: string | null; audio: string | null; clipStart: number; startAt: number; atSec: number; endSec: number | null; gain: number }
|
||||
| { 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