Playing Live MpegTS Streams

How can I managed to open and play a MpegTS stream?

I did it a long time ago but can’t recall the exact steps.

From what I remember is you put the address in a txt file and save it with an extension. In Kodi you go to videos and open file and the stream would start.

Anybody knows how to do this?

Thanks