3.1.3 Initialization

Upon initialization, the Miracast Sink MUST register the following service instance name ([RFC6763] section 4.1) with the Sink's local mDNS implementation.

 <instance name>._display._tcp.local

The <instance name> is the friendly name of the Sink, which will be associated with both port 7250 and the following TXT key-value pair ([RFC6763] section 6).

Key: container_id

Value: A GUID that identifies the Sink.

This service instance name is also used in [WF-DTS2.1] section 4.4.1.

After registering the service instance name, the Sink MUST start listening on TCP port 7250 for an inbound connection.

Finally, the Sink MUST begin being discoverable by Beacons and/or Probe Requests as in standard Miracast [WF-WSC2.0.2], except that every Beacon and Probe Response the Sink sends MUST include a Vendor Extension attribute (section 2.2.8). The values in the Capability attribute MUST be set according to the functionality that the Sink supports. The Sink SHOULD<2> support the StreamSecuritySupported functionality.  Sinks that support the StreamSecuritySupported functionality SHOULD<3> also support the PinSupported functionality.