2.2.5.4.3 On Sample Message (ON_SAMPLE)

The ON_SAMPLE message is used by the server to send a data sample to the client.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Header (variable)

...

PresentationId (16 bytes)

...

...

StreamId

numSample

pSample (variable)

...

Header (variable): The common message header (as specified in section 2.2.1). The InterfaceId field MUST be set to 0x00000000. The Mask field MUST be set to STREAM_ID_PROXY. The FunctionId field MUST be set to ON_SAMPLE (0x00000103).

PresentationId (16 bytes): A 16-byte GUID that identifies the presentation.

StreamId (4 bytes): A 32-bit unsigned integer that identifies the stream ID, of which the sample is a part.

numSample (4 bytes): A 32-bit unsigned integer. This field MUST contain the number of bytes in the pSample field.

pSample (variable):  A TS_MM_DATA_SAMPLE structure sent as an array of bytes. The fields of this structure describe the sample content.