2.2.3.2 $C (Stream Change Notification) Packet

The $C (Stream Change Notification) packet is sent by the server when it switches to the next or the previous entry in a server-side playlist. The purpose of this packet is to notify the client of that event. The $C packet is defined as a Framing header (section 2.2.3.1.1), with the following additional details:

B (1 bit): As specified in section 2.2.3.1.1.

Frame (7 bits): As specified in section 2.2.3.1.1.

PacketID (1 byte): This field MUST be set to the character "C" (0x43).

PacketLength (2 bytes): This field MUST be set to 4.

Reason (4 bytes): This field MUST be present. If the reason the $C packet is sent is because the server is switching to the previous entry in a server-side playlist, that is, the server is streaming the playlist in reverse, this field SHOULD be set to 0x400D14BE. Otherwise, it SHOULD be set to 0.