Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add a live camera preview during the media preflight

未关闭
#414 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@ChenYingHan1121 已经在做这个了。

开始于 2026年10月21日。

评估

这个 Issue 还没有评估数据。

描述

Problem

During the media preflight ("Check your setup"), candidates can verify whether their camera is working, but they cannot see their own camera feed.

This makes it difficult to check camera framing, face position, and lighting before starting an interview.

A live camera preview, similar to the pre-join screen in Google Meet, would help candidates adjust their camera setup before entering the interview.

Proposed Improvement

Add a live camera preview to the Camera section of the media preflight.

The preview should:

  1. Display the candidate's camera feed after camera access is granted.
  2. Use a mirrored view to make adjusting camera position more intuitive.
  3. Reuse the existing camera track without requesting a second camera stream.
  4. Hide or clear the preview when the camera is unavailable, disabled, or skipped.
  5. Preserve the existing face-presence detection behavior.
  6. Be visible only during the media preflight, not during the interview itself.

Technical Investigation

The existing implementation already obtains and uses the camera stream for face-presence detection.

In web/face-check.js, createFaceCheck() attaches the active camera track to a hidden video element:

video.srcObject = new MediaStream([trackOf()]);
await video.play?.().catch(() => {});

In web/interview.html, the video element is:

<video
  id="camera-integrity-video"
  class="hidden-media"
  muted
  playsinline
></video>

This suggests that the preview could reuse the existing camera track without another getUserMedia() call.

A separate visible video element may help keep the preview independent of the face-presence detection element.

Relationship to Existing Work

Related to #141 and PR #143.

Issue #141 focuses on displaying the candidate's webcam during the interview.

This proposal is specifically for the pre-interview media preflight ("Check your setup"), allowing candidates to adjust their camera framing and lighting before starting.

The preview would be limited to the preflight stage and would reuse the existing camera track without interfering with face-presence detection.

I understand that this is related to the existing webcam preview work, and I would appreciate confirmation that it is appropriate to track separately.

Question

Would this preflight-only camera preview be a useful addition to CodeTrial?

If the proposed scope is acceptable, I would be happy to implement it and add browser regression tests.

主要语言
Rust
星标
177
派生
100
平均合并
1 天 9 小时
30 天内合并 PR
151

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。