We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce30fca + 5ab4cc7 commit 7dee88cCopy full SHA for 7dee88c
.changeset/pink-ducks-think.md
@@ -0,0 +1,5 @@
1
+---
2
+"@jspsych/plugin-html-audio-response": patch
3
4
+
5
+uses mimetype of audio recorded for playback instead of defaulting to webm
packages/plugin-html-audio-response/src/index.ts
@@ -182,7 +182,7 @@ class HtmlAudioResponsePlugin implements JsPsychPlugin<Info> {
182
};
183
184
this.stop_event_handler = () => {
185
- const data = new Blob(this.recorded_data_chunks, { type: "audio/webm" });
+ const data = new Blob(this.recorded_data_chunks, { type: this.recorded_data_chunks[0].type });
186
this.audio_url = URL.createObjectURL(data);
187
const reader = new FileReader();
188
reader.addEventListener("load", () => {
0 commit comments