obiba / onyx

Web-based application that manages participant baseline interviews at assessment centres or clinics.
http://www.obiba.org/pages/products/onyx
GNU General Public License v3.0
6 stars 13 forks source link

ONYX-1741 - use native browser recorder and native container #34

Closed meek0 closed 7 years ago

meek0 commented 7 years ago

Tested exporting interviews where a recordings could be in either webm or wav and importing the resuting opal archive in opal. Downloaded for each participant the file under the QuartzDemoQuestionnaire/MEDIA_RECORD_AUDIO.AUDIO_RECORDING.AUDIO_RECORDING variable. The file is playable using vlc and mpv. The file's extension is always ".AUDIO_RECORDING".

mpv will report the true format of the file:

There does not seem to be any compatibility issue. The statement builder.mimeType("audio/x-wav"); in QuestionnaireStageVariableSourceFactory.java#652 should be chage or removed because it will no longer reflect the true mime type of the binary. The binary file is a string in the export xml.

The only thing that might be wrong is the mime type reported in opal. For now it will always say "audio/x-wav"even if its not. This value does not affect anything. It is only there for information.

This was tested on linux chrome, firefox; windows chrome, firefox, edge. Edge is the only one not working. Chrome has a https requirement in order to get ahold of the media stream.