If you have a newer version of TVHeadEnd as your PVR backend then you can sometimes set up your IPTV source as a stream in that. You first have to set up a network of the type "IPTV", then you can create muxes for you various IPTV streams. Here's a link to an article that tells how to do it for audio (Radio) streams:
https://freetoairamerica.wordpress.com/2...tvheadend/
TV streams are much the same principle, the only difference is the URL is a bit different from what is shown in the article because you are dealing with video. At its simplest form, here is an example:
pipe://ffmpeg -loglevel fatal -i http://
stream_url_here -vcodec copy -acodec copy -flags +global_header -strict -2 -metadata service_provider=
provider_name_here -metadata service_name=
stream_name_here -f mpegts pipe:1
For provider name and stream name just use something meaningful to you and replace any spaces with underscores (I think using a backslash to escape a space character would also work but I haven't tried that).
Then if it works you can map the channel in TVHeadEnd (just like you would map a TV channel) and then it will appear in Kodi's channel list, and the record button should work - no guarantees but it's worth a try.
My biggest issue has been finding always-on live streams that anyone would want to watch. The only working video stream I have found so far is one for ABC News and about all they show is a loop of the same entertainment news shows with an occasional 20/20 segment thrown in. I would like to find a (legal) stream of something like CNN or MSNBC, just anything that could be tuned to during major breaking news events, that could be set up as a channel in TVHeadEnd.
If you're not using TVHeadEnd as your backend then I would have no idea how you could do it. Sorry.