From what I know (having owned two Xiaomi Phones with the 'Remote Functionality') it is a basic IR LED (just like a universal remote). The LED is seated on the top of the phone (like a regular remote) so capturing that light with the camera for analysis would be quite incosistent imho. But worth a try?
https://play.google.com/store/apps/details?id=com.duokan.pho...