You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The record-video extension (and html-video-response) should record audio and video when init-camera has the parameter include_audio: true.
But when include_audio is true, the base64data is no longer accessible due to a misparse of the string. You get something like the string "audiocodecyouspecified;base64" instead of the base64Data. I suspect the additional metadata relating to the audio codec is messing up this part of the plugin:
private updateData() {
const data = new Blob(this.recordedChunks, {
type: this.recorder.mimeType,
});
const reader = new FileReader();
reader.addEventListener("load", () => {
const base64 = (reader.result as string).split(",")[1];
this.currentTrialData.record_video_data = base64;
if (this.onUpdateCallback) {
this.onUpdateCallback();
}
});
reader.readAsDataURL(data);
}
}
Maybe something as simple as changing .split(",")[1] with .split("base64,")[1] (or similar) would fix the misparse issue?
The text was updated successfully, but these errors were encountered:
The record-video extension (and html-video-response) should record audio and video when init-camera has the parameter include_audio: true.
But when include_audio is true, the base64data is no longer accessible due to a misparse of the string. You get something like the string "audiocodecyouspecified;base64" instead of the base64Data. I suspect the additional metadata relating to the audio codec is messing up this part of the plugin:
Maybe something as simple as changing
.split(",")[1]
with.split("base64,")[1]
(or similar) would fix the misparse issue?The text was updated successfully, but these errors were encountered: