Skip to main content

PlayStatus

enum PlayStatus {
pending, // please ignore this status, as we set the play status initially at `started`
started,
paused,
ended,
cancelled,
}

PlayStatus

1. started
This status means that the lesson is currently in progress. The user is actively engaged in watching or participating in the lesson.

2. paused
This status signifies that the lesson has been temporarily halted. The user has paused the lesson and can resume it later.

3. ended
Indicates that the lesson has been completed. The user has watched the entire lesson until the last second.

4. cancelled
This status means that the user has chosen to exit the lesson before completion. It does not indicate failure; substantial lesson progress can still result in passed: true.