Preface
Actually, this issue has been tossed around many times over the years. It's not that there's any technical upgrade, but purely that after a while I forgot how to do it again. After all, as I get older, my memory has also declined, and I can't remember how many times I've repeatedly researched it. Now that I have a blog, I can finally record it as a memo. However, the reason I haven't really wanted to write it down is: it's indeed hard to say if there's any major use for it. After all, I don't watch TV at all in my daily life, so even if all-media playback is achieved (being able to watch IPTV directly on phones, tablets, TVs, and computers no matter where you are), it's actually of absolutely no use to me, because I don't watch it. But today I happen to have some free time, so I'll take this opportunity to write it down.
Basic Principles
What is the essence of IPTV? It is the multicast protocol. We won't go into the detailed working principles of multicast here, as it is a whole set of protocols that cannot be explained in a few words. If you are interested, you can search for specific details online. To summarize in one simple sentence, a multicast packet can be thought of as a broadcast packet transmitted in a unicast manner, except that this broadcast packet can only be received by specific devices (located in the same multicast group). So why did telecom TV set-top boxes in the past have to be connected directly to the IPTV port on the optical modem? Because only this interface belongs to the IPTV multicast group and can receive IPTV multicast packets. Another characteristic of IPTV multicast packets is that they will definitely reach all central office equipment (the nearest data access equipment connecting the ISP to the user's optical modem). As for whether your home optical modem's IPTV interface can ultimately join the IPTV multicast group, it depends on whether your home has activated the IPTV service.
So, according to this logic, as long as my home has activated the IPTV service, can any device that supports the multicast protocol receive IPTV packets when connected to the optical modem's IPTV port? The answer is no, because there is an authentication step in between. This is to prevent you from just plugging any device into the IPTV port to watch TV. After all, if there were no control, and you connected a Layer 2 switch that supports multicast to the IPTV port to expand it, wouldn't any number of multicast-supporting devices connected to the switch be able to watch IPTV? Then how would telecom sell the 2nd or 3rd set-top box to the same household? After all, each additional set-top box brings in an extra 20 yuan of monthly income.
Therefore, when installing a new IPTV, a telecom engineer will come to activate it. This activation involves entering your telecom set-top box's information (usually the MAC address) into the telecom's backend system, making your set-top box a legitimate citizen so that it can pass authentication, join the IPTV multicast group through the IPTV port, and finally receive TV programs.
As for the specific authentication methods, there are several. For example, some places use PPPoE dial-up, while others use DHCP options (such as Chengdu Telecom). You need to confirm this yourself. Generally, if a local pioneer has already written an article online, it saves a lot of trouble. I analyzed it myself by capturing packets.
Having explained the principles for so long, if I want to achieve the so-called IPTV "all-media playback" through iKuai, I need to solve 3 main problems:
Authentication issue
It is necessary to bypass telecom's detection and pass the authentication of the telecom IPTV port on behalf of the telecom set-top box to receive IPTV multicast packets.
Protocol conversion issue
Convert IPTV multicast packets into the format required for "all-media playback".
Acquisition of multicast addresses corresponding to each channel
Actually, to solve the above 3 problems, there is an underlying condition: your router must support "multi-dialing". Why? Because a normal router only has one WAN port, which must be connected to the data port of the optical modem (in fact, many optical modems nowadays do not distinguish between data ports and IPTV ports; every port can act as either). However, IPTV authentication also requires the router to use a WAN port to connect to the optical modem's IPTV port, so at least 2 WAN ports are needed (essentially multi-line multi-dialing). Of course, if the egress router does not support multi-dialing, you can also use the WAN port of another router to connect to the optical modem's IPTV port (provided, of course, that this router supports the IPTV authentication method), and then connect its LAN port to the intranet switch. However, compared to achieving this with a single router, this method is obviously much lower in technical content and does not live up to my invincible reputation.
Authentication
There are many ways of authentication, the most common being PPPoE and DHCP. Relatively speaking, PPPoE is the simplest because basically any device supports PPPoE, which has zero barrier to entry. If the IPTV authentication method in your area is PPPoE, then congratulations, this step will save you a lot of hassle. However, Chengdu Telecom's IPTV happens to use DHCP, and this DHCP is not the usual DHCP; it also needs to support Option 60 and 61.
How do you determine which method your IPTV uses? The most convenient way is to search online. If someone in the same area has done it and posted about it, then congratulations, you can use it directly. For example, if a Chengdu Telecom IPTV user sees my post now, they will naturally know the authentication method. The rest is just knowing the set-top box's MAC address. And how do you find out the set-top box's MAC address? Just flip the set-top box over; it is written on the back.
However, I will still briefly explain how to determine the set-top box's authentication method. This requires some basic networking knowledge, specifically how to capture packets and analyze their content. Simply put, you can connect the set-top box to a device capable of packet capture, including but not limited to switches that support port mirroring, soft routers, or dedicated devices, as follows:

The introduction of this device is as follows:

I won't go into detail on how to use it; you can study it at your own pace. Here, I will directly use iKuai's built-in packet capture tool, simulate the set-top box with the WAN3 port, and then capture the connection establishment process of the set-top box for everyone to see. Since my iKuai uses the WAN3 port to connect to the optical modem's IPTV port, packet capturing is very simple. I directly specified the set-top box's MAC address so that irrelevant packets won't be captured, as shown below:

After starting the packet capture, reconnect iKuai's WAN3 port to initialize the authentication process, and then stop the packet capture:

Click file download, download the captured packet locally, and open it with Wireshark:

As can be seen from the Protocol section of the first 5 packets in the image above, the DHCP authentication method is used. So, what is special about this DHCP packet? You can look at the red boxes in the lower part of the image above. There are 3 of them, namely Host Name of Option 12, Client identifier of Option 61, and Vendor class identifier of Option 60, as shown below:

Please note down the parameters after Host Name in the image above. After Client Identifier is the set-top box's MAC address, and the Vendor
class identifier value should be noted down. This is very important. Chengdu Telecom is SCITV; I cannot be sure about other places in Sichuan.
Among them, Option 12 does not seem to be mandatory. Therefore, to pass IPTV authentication, the router's DHCP function must at least support Option 60 and Option 61. Both ASUS routers and iKuai can do this. ASUS routers only support Option 60 and 61, while iKuai supports Option 12, 60, and 61.
ASUS Router:

iKuai Soft Router:

So if you are using iKuai and happen to be using Chengdu Telecom (or Sichuan Telecom) IPTV, then congratulations, you can directly use a single iKuai to access the Internet and watch IPTV at the same time.
Ultimately, my iKuai's DHCP option parameter settings are as follows:

In the image above, fill in Option 60 with the value you obtained from packet capturing (for Chengdu Telecom IPTV, fill in SCITV), fill in Option 12 with the value you obtained from packet capturing (leave it blank for routers that do not support Option 12, as this does not seem to be mandatory), and just fill in Option 61 with your set-top box's MAC address.
If the IPTV authentication in your area is PPPoE, it is much more convenient. Just enter the username and password to dial up. In any case, as long as you can successfully obtain an IP address (not an address like 192.168.x.x; here in Chengdu, it is 10.x.x.x), it means you have passed the telecom IPTV side authentication, joined the IPTV multicast group, and are already able to receive IPTV packets.
Protocol Conversion
The next step is how to convert the multicast protocol packets into a format that "all-media" can play. Actually, there is only one key technology: udpxy.
IPTV multicast packets use the UDP protocol. udpxy converts UDP protocol multicast packets into TCP protocol HTTP unicast packets, so that they can be played directly using the format http://soft_router_IP:port/multicast_address:port. For example, my CCTV1 address here:
http://192.168.1.254:55555/udp/239.93.0.184:5140。
In iKuai, enabling udpxy is very simple. Go to "Advanced Applications" - "UDPXY" settings - "Add":

For the signal source interface, mine is wan3, so I select wan3. You can fill in any service port, for example, I wrote 55555 here. Then there is an external network access option. If you don't have a public IP address, or if you have one but only want to access it at home, select "No" here; otherwise, if you want external network access, select "Yes". Finally, click OK on the far right.
Acquisition of Multicast Addresses for Each Channel
In the previous section, I mentioned that the local CCTV-1 address converted by udpxy is:http://192.168.1.254:55555/udp/239.93.0.184:5140, the first part of this link is easy to understand, but how is the last part, 239.93.0.184:5140, obtained? Theoretically, this is obtained through packet capture analysis. This should have been the most time-consuming step of the entire solution, but since I have already compiled the Chengdu Telecom IPTV program sources (excluding some that I didn't find interesting, leaving 131 channels), friends using Chengdu Telecom IPTV are in luck. You just need to download the m3u file I use and modify it slightly.
The m3u format text file is structured similarly to the following:
#EXTM3U name="成都电信IPTV"
#EXTINF:-1, CCTV-1
http://192.168.1.254:55555/udp/239.93.0.184:5140
#EXTINF:-1, CCTV-1杜比
http://192.168.1.254:55555/udp/239.93.0.69:5140
#EXTINF:-1, CCTV-2
http://192.168.1.254:55555/udp/239.93.1.23:6000
#EXTINF:-1, CCTV-3
http://192.168.1.254:55555/udp/239.93.1.11:2223
#EXTINF:-1, CCTV-4
http://192.168.1.254:55555/udp/239.93.1.105:5140
#EXTINF:-1, CCTV-5
http://192.168.1.254:55555/udp/239.93.1.12:2224
#EXTINF:-1, CCTV-5+
http://192.168.1.254:55555/udp/239.93.1.36:8004
#EXTINF:-1, CCTV-6
http://192.168.1.254:55555/udp/239.93.1.13:2226
#EXTINF:-1, CCTV-7
http://192.168.1.254:55555/udp/239.93.1.67:5140
#EXTINF:-1, CCTV-8
http://192.168.1.254:55555/udp/239.93.1.14:2225
#EXTINF:-1, CCTV-9
http://192.168.1.254:55555/udp/239.93.1.24:5140
#EXTINF:-1, CCTV-10
http://192.168.1.254:55555/udp/239.93.1.28:5140
#EXTINF:-1, CCTV-11
http://192.168.1.254:55555/udp/239.93.0.102:5140
#EXTINF:-1, CCTV-12
http://192.168.1.254:55555/udp/239.93.1.30:8124
#EXTINF:-1, CCTV-13
http://192.168.1.254:55555/udp/239.93.0.99:5140
#EXTINF:-1, CCTV-少儿
http://192.168.1.254:55555/udp/239.93.1.29:6000
The above section requires you to modify the router address, port, and the final multicast address and port according to your own situation. At the end of this article, I will provide the m3u file for the Chengdu area. Friends with Chengdu Telecom IPTV only need to replace it with their own router's address and port. Friends in other regions will have to find it themselves. In any case, unless absolutely necessary, do not do packet capture analysis yourself; just search online to see if there are ready-made ones. If you really can't find it and still want to watch, then consider the packet capture analysis route.
How to Watch
Honestly, once you have the m3u file, you can already watch it directly, for example, by opening the m3u file directly with VLC player:

However, it's a bit basic. While VLC works fine on Windows, there is a much better choice on Mac, which is APTV:

Doesn't it look much more high-end instantly? Crucially, there are corresponding versions for iPhone, iPad, macOS, and Apple TV, and they sync via iCloud. Damn, this is true all-media playback. You can generate two m3u files for the intranet and extranet respectively: one for devices to use on the intranet, and one for devices to use on the extranet (by replacing the addresses in the intranet m3u with extranet addresses; of course, this requires your home broadband to have a public IP and a configured dynamic domain name), allowing for flexible configuration switching:

To be honest, I don't watch much TV, otherwise this experience of watching TV anytime and anywhere would be absolutely fantastic.
Alternative Single-Client IPTV Playback Solutions
Actually, before APTV, I wasn't very keen on opening m3u files directly with players like VLC either, as I felt it was too basic. Back then, I used another method to watch TV anytime, anywhere with a single client, which was Emby's built-in Live TV feature:

There are three benefits to this approach:
Through the Emby client, iPhone, iPad, Mac, and Apple TV can all play TV,
Supports program guide:


Can record programs:

In terms of viewing experience, it's actually not bad, but having to open Emby first and then open live TV every time is a bit annoying, so I have now abandoned Emby and fully switched to APTV, although I still don't watch TV, mainly because there's really nothing good to watch.
Chengdu Telecom IPTV program source .m3u download address is as follows:
[VIP]
Chengdu Telecom IPTV program source
[/vip]
Live broadcast is multicast, which doesn't require authentication; you can watch it by just setting any IP.
Live broadcasts on the internet indeed are, but my article is talking about the IPTV function provided by Telecom set-top boxes. Authentication definitely exists, it's just that the methods differ in different regions. The most basic is that by default, each household is only allowed one set-top box to access, and a second set-top box requires extra money. The purpose of this article is how to pay for only one set-top box while allowing an unlimited number of terminals to access, of course, only for Apple terminal devices.
The key is that you can't playback and drag the progress bar.
That would be the playback function, which is definitely not possible; you can only watch TV programs normally.