mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
fix for wrong audio mimetype preventing playback in Safari
This commit is contained in:
parent
5af76ab4d7
commit
cc1ca257f5
@ -133,7 +133,7 @@ class HtmlAudioResponsePlugin implements JsPsychPlugin<Info> {
|
||||
};
|
||||
|
||||
this.stop_event_handler = () => {
|
||||
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 });
|
||||
this.audio_url = URL.createObjectURL(data);
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener("load", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user