I am currently trying to help one of my students with setting up a camera control to record video. We have been able to set up a camera control to record video, but no sound is recorded. According to the dictionary an audioDevice ID should be set in order to record sound as well as video. Using the cameraControlGet to get the audioDevice ID does not return empty, but no sound is recorded. That is, sometimes it do record sound, others it do not.
When trying to explicitly set the audioDeviceID upon creation of the cameraControl, I get a script error, unless I type the audioID inside quotes directly into the code. This is of course annoying and not very useful, as one never knows the audioDeviceID other than on the device used to make the application. I must admit I have no idea as to what I am doing wrong, but I trust this list to spot the obvious mistake quickly. Here is the script for setting up the camera control: