No problem. IR disappeared from phones for a few years after the old Symbian handsets from the likes of Sony Ericsson
(my P800 still works and on its original, 11 year old battery too) gave way to slimmer, ever more complex devices but HTC brought back the infrared port on the One when it was introduced last Winter, Samsung weren't far behind and more recently, Huawei announced that they're also having a piece of that action, which is sure to inspire the other phone makers to follow their example, in fact they probably did already.
I use
this app on my HTC and it basically sets itself up to work with any device that uses IR for remote control, I have it operating my Sony TV, my Wharfedale (cheap generic brand probably not sold outside of the UK) Digital Freeview hard drive recorder, my parents' garage door (useful when I drive up to visit their place), both of their TVs (haven't told them how I do that trick yet

...) and my sister in law's hi-fi (dear Heather, she's convinced its tuner is broken as it mysteriously changes radio channels all on its own!).
It's also great fun to go into large home electricals stores and stand in the doorway changing the channels on all of their display TVs but obviously that's just something I've been told and I'm far too old and lacking in sense of humour to do such mischief myself.
