Skip to content

Commit

Permalink
Unmuted recorded consent playback (#65)
Browse files Browse the repository at this point in the history
* Play should not be muted.

* Changeset

* Test
  • Loading branch information
okaycj authored Oct 16, 2024
1 parent ed5ea88 commit 496b62d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-pigs-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lookit/record": patch
---

Unmute playback of recorded consent video.
5 changes: 5 additions & 0 deletions packages/record/src/consentVideo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { LookitWindow } from "@lookit/data/dist/types";
import Handlebars from "handlebars";
import { initJsPsych, PluginInfo, TrialType } from "jspsych";
import consentVideoTrial from "../templates/consent-video-trial.hbs";
import playbackFeed from "../templates/playback-feed.hbs";
import recordFeed from "../templates/record-feed.hbs";
import { VideoConsentPlugin } from "./consentVideo";
import {
Expand Down Expand Up @@ -272,3 +273,7 @@ test("nextButton", () => {

expect(jsPsych.finishTrial).toHaveBeenCalledTimes(1);
});

test("Video playback should not be muted", () => {
expect(playbackFeed).not.toContain("muted");
});
1 change: 0 additions & 1 deletion packages/record/templates/playback-feed.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<video
autoplay
playsinline
muted
src="{{{src}}}"
id="{{webcam_element_id}}"
width="{{width}}"
Expand Down

0 comments on commit 496b62d

Please sign in to comment.