2.2.1 Shared Message Header (SHARED_MSG_HEADER)

The SHARED_MSG_HEADER structure is a common header included in every message of the protocol.


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

Version

MessageId

Version (1 byte): An 8-bit unsigned integer that specifies the protocol version of the message. This field MUST be set to either 1 or 2.

MessageId (1 byte): An 8-bit unsigned integer that specifies the type of the message.

Value

Meaning

SuccessResponse

1

A Success Response (section 2.2.3.1) message.

ErrorResponse

2

An Error Response (section 2.2.3.2) message.

SelectVersionRequest

3

A Select Version Request (section 2.2.2.1) message.

SelectVersionResponse

4

A Select Version Response (section 2.2.2.2) message.

DeviceAddedNotification

5

A Device Added Notification (section 2.2.2.3) message.

DeviceRemovedNotification

6

A Device Removed Notification (section 2.2.2.4) message.

ActivateDeviceRequest

7

An Activate Device Request (section 2.2.3.3) message.

DeactivateDeviceRequest

8

A Deactivate Device Request (section 2.2.3.4) message.

StreamListRequest

9

A Stream List Request (section 2.2.3.5) message.

StreamListResponse

10

A Stream List Response (section 2.2.3.6) message.

MediaTypeListRequest

11

A Media Type List Request (section 2.2.3.7) message.

MediaTypeListResponse

12

A Media Type List Response (section 2.2.3.8) message.

CurrentMediaTypeRequest

13

A Current Media Type Request (section 2.2.3.9) message.

CurrentMediaTypeResponse

14

A Current Media Type Response (section 2.2.3.10) message.

StartStreamsRequest

15

A Start Streams Request (section 2.2.3.11) message.

StopStreamsRequest

16

A Stop Streams Request (section 2.2.3.12) message.

SampleRequest

17

A Sample Request (section 2.2.3.13) message.

SampleResponse

18

A Sample Response (section 2.2.3.14) message.

SampleErrorResponse

19

A Sample Error Response (section 2.2.3.15) message.

PropertyListRequest

20

A Property List Request (section 2.2.3.16) message. This message is supported only by version 2 of the protocol.

PropertyListResponse

21

A Property List Response (section 2.2.3.17) message. This message is supported only by version 2 of the protocol.

PropertyValueRequest

22

A Property Value Request (section 2.2.3.18) message. This message is supported only by version 2 of the protocol.

PropertyValueResponse

23

A Property Value Response (section 2.2.3.19) message. This message is supported only by version 2 of the protocol.

SetPropertyValueRequest

24

A Set Property Value Request (section 2.2.3.20) message. This message is supported only by version 2 of the protocol.