Curtain Call · README

Open the application Open the guide

Curtain Call: Final Application

CSC4130 Final Project · Undergraduate Team 6 · Chenkai Li, Hehan Li, Rukai Xiao, Jianheng Xu, Shangheng Zheng

Curtain Call is a mobile web application for watching short videos before sleep. You choose how long to watch tonight. When that time arrives, the clip that is playing may finish, the feed pauses, and you decide whether to end the session or add five more minutes.

1. Access and setup

Online (recommended for reviewers). Open https://xmq168-curtain-call.static.hf.space/ in a current browser on a phone or a computer. Nothing needs to be installed, and no account is required.

Page Online address
Application https://xmq168-curtain-call.static.hf.space/
Guide with rehearsal links https://xmq168-curtain-call.static.hf.space/guide.html
This README as a web page https://xmq168-curtain-call.static.hf.space/readme.html

Requirements. A current browser with JavaScript and MP4 (H.264) video: Chrome, Edge, Safari or Firefox. All clips, images and replies are part of the application.

Offline from the submission. The CurtainCall folder of the submitted ZIP contains the same application.

2. Target device

3. Context of use

4. Supported task flows

Task Steps Expected result
T1 Finish on time Choose 15 min and tap Start. Watch. When the reminder appears, let the clip finish, then choose End this session. Playback and the timer stop. The completion screen says so; View session details shows the time spent.
T2 Chat and continue Choose 20 min and start. Tap Want to talk about this clip?, pick a question or type one, then Close chat. At time-up choose 5 more minutes, check 20 + 5 = 25, and Confirm · 25 min total. At the next time-up, end the session. Cancelling keeps 20 minutes. Confirming keeps the same clip, the conversation and any unsent text. The summary shows one extension.
T3 Keep a usual plan Open Reminders (bottom bar or gear icon). Choose 30 min, Gentle and Brief, check the preview, and tap Save as my usual plan. Back on Tonight's plan, choose 20 min, start, and end the session. The card Your usual plan still reads 30 min · gentle · brief, and the summary confirms that tonight's 20 minutes did not change it.

Other paths: End (top right) finishes a session early after a confirmation. If you reach the last of the 69 clips before your time is up, a card shows the remaining time and offers Replay this collection or End this session.

5. Operating instructions

Screens. The bottom bar switches between Tonight's plan (start screen) and Reminders (usual plan). During a session you see the video feed; at time-up, a reminder over the clip and then the decision screen; after ending, the completion screen.

Action Phone Computer
Choose tonight's duration Tap 15, 20 or 30 min, drag the ruler, or type “20 minutes” or “half an hour” and tap ↑ Click, or type in the field and press Enter
Start the session Tap Start · N min Click it, or Tab to it and press Enter
Next or previous clip Swipe up or down, or tap Next Scroll over the video, press ↓ or ↑, or click Next
Pause or play Tap the video Click the video, or Tab to it and press Enter
Move within a clip Drag the progress bar Drag the progress bar
Talk about a clip Tap Want to talk about this clip?, then a suggested question or your own text (up to 160 characters) Same, with the keyboard
See the session or end early Tap the time chip (top left) or End (top right) Click them
Like or comment Buttons on the right of the video Same
Close a sheet ×, Close chat or Got it, drag the sheet down by its handle, or tap outside it Same, or press Escape

Before time-up. In the last three minutes of the plan, or the last fifth of a shorter plan, the feed moves on to calm clips, those with little motion and quiet sound. The line under the timer then reads Calmer clips from here.

What happens at time-up

  1. A reminder appears over the playing clip with End now and 5 more minutes. The clip may finish, and no new clip starts. Show choices skips the rest of the clip.
  2. When the clip ends, the decision screen offers End this session and 5 more minutes. View time breakdown shows the plan and any time used to finish the clip.
  3. 5 more minutes shows the current, extra and total minutes. Nothing changes until you tap Confirm; Cancel extension keeps the plan.
  4. End this session stops playback and the timer.

Good to know

6. Rehearsal mode for reviewers and the class demonstration

Real sessions last 15 to 30 minutes. To try time-up without waiting, open the guide and choose a rehearsal task. Rehearsal sessions add demonstration controls (on a phone, tap Demo tools at the top):

Rehearsal sessions are stored separately from everyday use, so they never change a real session. Direct links:

With the local server, the same links start with http://127.0.0.1:8000/ instead.

7. Simulated content and limits

8. Files

Path Contents
app/ The application: index.html, guide.html, readme.html (this README as a web page), park-films.js, endings.css and media/
serve.cjs Local server using Node.js built-in modules only; supports seeking in video
tests/ Automated checks for developers, run against the local server with Playwright installed: node tests/flows.cjs http://127.0.0.1:8000/ (ten task flows) and node tests/mobile.cjs http://127.0.0.1:8000/ (25 phone-viewport accessibility checks, also needs axe-core)