3.2.4.1 Notification That the Last Data Packet Has Been Sent

This event occurs when the value of the State variable in the abstract data model is STREAMING, and the higher layer notifies the server that the last Data packet has been sent.

The server MUST fill in the fields of a LinkMacToViewerReportEndOfStream (section 2.2.4.5) message.

The higher layer MUST specify if a new ASF file header is forthcoming, so that there are additional entries in the server-side playlist, or, if this is the last entry in the playlist, so that the hr field in the LinkMacToViewerReportEndOfStream message can be filled in correctly. The hr field MUST be set to 0x00000001 if there are additional entries in the server-side playlist, and MUST be set to 0x0000000 otherwise.<47>

If the value of the hr field is not set to 0x00000001, the value of the State variable MUST be set to READY.

When sending the LinkMacToViewerReportEndOfStream, it MUST be sent by following the rules specified in section 3.2.5.2.

If the value of the Client-Port variable is not 0x0000, the server MUST be prepared to receive RequestPacketListResend packets on the UDP port. How to process a RequestPacketListResend packet is specified in section 3.2.5.13.

The server MUST also be prepared to receive a LinkViewerToMacLogging message from the client. How to process a LinkViewerToMacLogging message is specified in section 3.2.5.15.

If the value of the hr field in the LinkMacToViewerReportEndOfStream message is not set to 0x00000001, the server MUST also be prepared to receive a LinkViewerToMacStreamSwitch message, a LinkViewerToMacStartPlaying message, a LinkViewerToMacStartStriding message, or a LinkViewerToMacCloseFile message from the client.

If the value of the State variable is READY, the Idle-Timeout timer MUST be started.

How to process a LinkViewerToMacStreamSwitch message is specified in section 3.2.5.10.

How to process a LinkViewerToMacStartPlaying message is specified in section 3.2.5.11.

How to process a LinkViewerToMacStartStriding message is specified in section 3.2.5.12.

How to process a LinkViewerToMacCloseFile message is specified in section 3.2.5.17.