lookit / ember-lookit-frameplayer

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

Add warning/logging when max recording is reached #383

Open becky-gilbert opened 1 month ago

becky-gilbert commented 1 month ago

Summary

We recently encountered a problem with the attempted download of a very large recording file. The EFP experiment runner has a maximum recording duration that should prevent experiments from producing very large recordings in the first place. Currently, if the maximum duration is reached then there is a warning in the browser's console, but can easily go unnoticed since it doesn't actually alert the participant or researcher.

Implementation notes

We should consider options for logging that the upper recording limit has been reached. Perhaps the most straightforward option is to add this as a flag to the JSON response data (e.g. exceededUpperRecordingLimit: true). Here's the relevant bit of EFP code for handling recordings that have exceeded the time limit.

Other options:

Whatever we decide to do in EFP, we should make note of for lookit-jspsych as we will want to do the same thing there.