Patent attributes
An electronic device that obtains a set of remote-control commands is described. During operation, the electronic device may receive an image associated with a second electronic device, where a brand and a model of the second electronic device are initially unknown to the electronic device. Then, the electronic device may perform image analysis on the image to determine at least the brand of the second electronic device. Moreover, the electronic device may access, based at least in part on the determined brand, the set of remote-control commands that are associated with the second electronic device. Next, the electronic device may store the set of remote-control commands in memory. Subsequently, when the electronic device receives user-interface activity information associated with a portable electronic device that specifies selection of the second electronic device, the electronic device may provide the set of remote-control commands to the second electronic device.