Hi,
I’ve recently tried again to upgrade to the latest JUCE version. However, two of my apps which rely on webcam support are still broken since Apple made the switch from Quicktime to AV.
I’m currently using JUCE 4.3.1 and rolling back the Apple SDK version to get around this problem. However, it would be nice to use the latest JUCE version, in light of the recent introduction of the audio DSP classes.
Basically, the problem is annoyingly simple, the video stuff works perfectly fine; its just when I call the “getAvailableDevices()” function in “juce_mac_CameraDevice” (in order to get a list of available webcam devices), the function now returns “default” only:
JUCE 4.3.1:
static StringArray getAvailableDevices()
{
StringArray results;
NSArray* devs = [QTCaptureDevice inputDevicesWithMediaType: QTMediaTypeVideo];
for (int i = 0; i < (int) [devs count]; ++i)
{
QTCaptureDevice* dev = (QTCaptureDevice*) [devs objectAtIndex: i];
results.add (nsStringToJuce ([dev localizedDisplayName]));
}
return results;
}
And now in JUCE 5.1.2:
static StringArray getAvailableDevices()
{
StringArray results;
results.add (“default”);
return results;
}
Which is fine if the “default” camera happens to be the camera the user wants to use, but in some cases it is not.
Therefore, if someone is able to direct me towards a workaround, or provide an ETA on when this feature will return; this would be much appreciated : )
Many thanks and best regards,
keag