Description:

Query if camera supports a specific profile for recording then initialize the media capture settings with that profile. First option is to query for a matching profile of 640x480 30FPS. Second option is to query for a specific custom profile. In the event the profile can't be found we set to the first recording default profile.