2.2.5.2.4 Add Stream Message (ADD_STREAM)
This message is used by the server to ask the client to add a stream to a presentation, which MUST be used to play media data in the format specified in the message.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Header (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
PresentationId (16 bytes) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
StreamId |
|||||||||||||||||||||||||||||||
numMediaType |
|||||||||||||||||||||||||||||||
pMediaType (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 ADD_STREAM (0x00000102).
PresentationId (16 bytes): A 16-byte GUID that identifies the presentation.
StreamId (4 bytes): A 32-bit unsigned integer that identifies the stream.
numMediaType (4 bytes): A 32-bit unsigned integer that MUST contain the number of bytes in the pMediaType field.
pMediaType (variable): A TS_AM_MEDIA_TYPE structure sent as an array of bytes. This field indicates the media type of the stream.