2.2.3.14 Sample Response

The Sample Response message is sent by the client over a device channel when a new video sample is available and there are outstanding Sample Requests (section 2.2.3.13). It contains the video sample bits.


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

StreamIndex

Sample (variable)

...

...

...

Header (2 bytes): A SHARED_MSG_HEADER (section 2.2.1) structure. The Version field MUST be set to the same value as in the Select Version Response (section 2.2.2.2) message. The MessageId field MUST be set to SampleResponse (18).

StreamIndex (1 byte): An 8-bit unsigned integer containing the index of the stream which produced the sample. This index MUST match the index in the STREAM_DESCRIPTION array returned in the Stream List Response (section 2.2.3.6) message.

Sample (variable): A variable-length array of bytes containing the sample data. The data format depends on the stream format selected in the Start Streams Request (section 2.2.3.11) message.