any way to choose camera based on listDevices string instead of ID number?

Is there a way to select a camera based on it’s string returned by listDevices() instead of by ID number?

that’s planned since some time ago, but we haven’t implemented it yet