Confirmed users
216
edits
(→Architecture: add details for each components) |
(add sequence diagram) |
||
| Line 43: | Line 43: | ||
== Protocol Details == | == Protocol Details == | ||
=== | === Service Discovery === | ||
[[File:Draft Protocol Service Discovery.png]] | |||
=== Device Pairing === | |||
=== Establish Control Channel === | |||
=== Start Presentation === | |||
* STEP 1: find device (mDNS/DNS-SD: _presentation-ctrl._tcp) | * STEP 1: find device (mDNS/DNS-SD: _presentation-ctrl._tcp) | ||
** STEP 1a: query device capability (send query message: supported media type, supported URL format) | ** STEP 1a: query device capability (send query message: supported media type, supported URL format) | ||
| Line 52: | Line 56: | ||
** STEP 4a: establish DataChannel via SDP | ** STEP 4a: establish DataChannel via SDP | ||
* STEP 5: close control channel (send close message: ) | * STEP 5: close control channel (send close message: ) | ||
[[File:Draft Protocol Start Presentation.png]] | |||
=== Terminate === | === Establish Data Channel === | ||
[[File:Draft Protocol Establish Data Channel.png]] | |||
=== Terminate Presentation === | |||
* STEP 1: setup control channel to remote device (send connect message: auth token) | * STEP 1: setup control channel to remote device (send connect message: auth token) | ||
** STEP 1a: complete challenge with stored information | ** STEP 1a: complete challenge with stored information | ||
* STEP 2: terminate app / page via session Id (send terminate message: session Id) | * STEP 2: terminate app / page via session Id (send terminate message: session Id) | ||
* STEP 3: close control channel (send close message: ) | * STEP 3: close control channel (send close message: ) | ||
[[File:Draft Protocol Terminate Presentation.png]] | |||
=== | === Close Connection === | ||
[[File:Draft Protocol Close Connection.png]] | |||
=== Resume Connection === | |||
* STEP 1: setup control channel to remote device (send connect message: auth token) | * STEP 1: setup control channel to remote device (send connect message: auth token) | ||
** STEP 1a: complete challenge with stored information | ** STEP 1a: complete challenge with stored information | ||
| Line 66: | Line 74: | ||
** STEP 3a: establish DataChannel via SDP | ** STEP 3a: establish DataChannel via SDP | ||
* STEP 4: close control channel (send close message: ) | * STEP 4: close control channel (send close message: ) | ||
[[File:Draft Protocol Resume Connection.png]] | |||
== References == | == References == | ||
* [https://github.com/w3c/presentation-api/blob/gh-pages/interoperability.md Protocol suggestion by Second Screen WG] | * [https://github.com/w3c/presentation-api/blob/gh-pages/interoperability.md Protocol suggestion by Second Screen WG] | ||
* [https://github.com/mfoltzgoogle/freeplay/blob/master/architecture.md Architecture proposed by Google] | * [https://github.com/mfoltzgoogle/freeplay/blob/master/architecture.md Architecture proposed by Google] | ||