WebAPI/PresentationAPI:CoreService: Difference between revisions

→‎= handle presentation request: provide detail description
m (→‎= close and resume connection: fix headline level)
(→‎= handle presentation request: provide detail description)
Line 52: Line 52:


=== Receiving UA ===
=== Receiving UA ===
==== handle presentation request ===
==== handle presentation request ====
[[File:CoreService Flow handle session request.png|thumb|650px|sequence diagram of handling session request on receiving UA]]
* establishing TCP Transport
* establishing TCP Transport
[[File:CoreService Flow handle session request.png]]
# PresentationService observe incoming presentation request via "presentation-session-request" topic
# create receiving browser context via nsIPresentationUIGlue and navigate to presentation URL
# a (windowId, presentationId) mapping will be created at content side while document begins to load
# PresentationReceiver and PresentationConnection object will be created while navigator.presentation object is touched first time
# In parallel, establish transport channel between controlling page and presented content
# transport channel state and incoming message will be sent to presented content once PresentationConnection object is created
## if fail to create transport channel, PresentationConnection state should be set to 'closed'
Confirmed users
216

edits