Authentication
Login or register, then reuse the token for search, websocket prep, and stream playback.
Ready
Auth token
Search results feed the websocket prep loop, the server selects the best video file and subtitle tracks, and the browser player starts only when the stream is ready.
Login or register, then reuse the token for search, websocket prep, and stream playback.
Pick a result, then prepare and play it through the websocket flow.