2.2.7 Miracast TLVs
This section defines common type-length-value (TLV) structures that are used to pass information in messages during a Miracast session. This is the general format for the TLVs:
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type |
Length |
Value (variable) |
|||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
Type (1 byte): The type of TLV, which determines the information passed in the Value field. The following TLVs are defined in the sections listed.
-
TLV type
Section
Description
FRIENDLY_NAME
0x00
Specifies the friendly name of the Miracast Source.
RTSP_PORT
0x02
Specifies the port on which the Source is listening for RTSP connections.
SOURCE_ID
0x03
Specifies an identifier for the Source, which is used for all messages sent during a Miracast session.
SECURITY_TOKEN
0x04
Contains a DTLS handshake message.
SECURITY_OPTIONS
0x05
Specifies whether stream encryption and/or PIN entry will be used for the session.
PIN_CHALLENGE
0x06
Contains a salted hash of the PIN when PIN entry is used to establish the connection.
PIN_RESPONSE_REASON
0x07
Specifies whether the PIN Response indicates a successful connection.
Length (2 bytes): The length of the Value field, in bytes. This value MUST be greater than or equal to 0x0001.
Value (variable): One or more bytes, which specify information for the TLV.