lookit / ember-lookit-frameplayer

Ember app with experiment frames and a frame player to run browser-based experiments
MIT License
5 stars 20 forks source link

Fix video assent webcam display #399

Closed becky-gilbert closed 4 months ago

becky-gilbert commented 4 months ago

Fixes #398

Summary

This fixes a problem with the webcam display in the video-assent frame. This problem was introduced recently when I made changes to ensure that the video recorder was ready before the participant was able to start recording in the video-assent and video-consent frames (#388).

Description of changes

Testing

I've tested this in all of the recording/non-recording variations that were tested in #388:

As well as the recording-related parameter combinations involving webcam display:

Screenshots

Currently, when the showWebcam: true parameter setting is used, the frame does not the display the webcam feed as it should:

Screenshot 2024-07-01 at 2 22 53 PM

This change fixes this so that the showWebcam: true setting works correctly:

Screenshot 2024-07-01 at 2 22 05 PM

Docs Updates

As part of testing, I noticed that the webcam display does not work when session recording is in progress. Getting that to work is non-trivial, as the session recorder is attached to a different part of the page (so that it keeps running across frames) and it is designed to stay hidden. Also, AFAIK there's no strong use case for using session recording during consent/assent frames. Therefore I've added a note to the docs to warn users not to use session recording during the video-assent/consent frames, and instead to start session recording after those frames.

video assent docs page

Screenshot 2024-07-01 at 3 36 12 PM

video consent docs page

Screenshot 2024-07-01 at 3 36 27 PM