jsPsych icon indicating copy to clipboard operation
jsPsych copied to clipboard

Add audio selection to initialize-camera plugin

Open thtTNT opened this issue 1 year ago • 3 comments

Hi JsPhych Team,

I want to add a selectbox in initialize-camera plugin allow user to select microphone.

In most cases, recording video also means that audio is also recorded. Therefore, I think it is necessary to allow the user to choose the audio device.

I want to create a PR related to it. I would very appericate it if I can know your opinion.

thtTNT avatar Jun 25 '24 01:06 thtTNT

Hi @thtTNT,

I think this is a good idea. It might make sense to consolidate the initialize-camera and initialize-microphone plugins, and just give parameters for whether developers want video, audio, or both.

jodeleeuw avatar Jun 27 '24 01:06 jodeleeuw

Hi @jodeleeuw.

Good idea~ So I should remove the initialize-microphone plugin and modify the initialize-camera plugin? Will it affect the deployed project?

thtTNT avatar Jun 28 '24 14:06 thtTNT

I think adding a new initialize-recording plugin might be the cleanest way to signal the change. Then we can deprecate the other two.

jodeleeuw avatar Jun 28 '24 14:06 jodeleeuw