The interface media::VideoCaptureDeviceFactory currently uses VideoCaptureDeviceDescriptor as key for accessing devices in methods CreateDevice() and GetSupportedFormats(). The VideoCaptureDeviceDescriptor struct contains information that is not needed for identifying a device. It would be cleaner to use the string |device_id| instead.
A translation from device descriptors to device ids is currently happening in DeviceFactoryMediaToMojoAdapter. This translation should move to a new layer between the platform-specific implementations and the clients of the video capture API.
Comment 1 by chfremer@chromium.org
, Nov 14 2016Owner: chfremer@chromium.org