W3C home > Mailing lists > Public > public-secondscreen@w3.org > March 2015

joinSession and resumeSession

From: Oleg Beletski <o.beletski@samsung.com>
Date: Thu, 05 Mar 2015 11:09:30 +0000
To: "public-secondscreen@w3.org" <public-secondscreen@w3.org>
Message-id: <E36445936A572743840F0BF1A5EC5FED0AD88D69@ex1.seri.co.uk>
Hello,

After reading the Presentation API specification I got a feeling that functionality for joining the presentation session and resuming of the presentation session are not properly separated from each other in the document.

I understood joining of the presentation session practically as the case when multiple originating pages are trying to connect to the same presentation from the different UA. There could be a problem if we have same URL/PresentationID opened on different presentation devices. There is no way to tell API which screen we want to connect to and there is a possibility that there is no recent connection, so API will fail unless we allow screen selection to happen again. Not sure if we can solve that problem without trying to pass extra information about destination screen to joinSession method. That problem already captured in issue #39, Resumption of multiple sessions.

Session resumption would happen in case user closes and then reopens UA. Now it would be sufficient to pass only PresentationSession id as a single argument to resumeSession method (not part of current Presentation API) to reactivate the session for given session id (preserved in localStorage). That would restore connection to the same Url-PresentationID-Screen combination if it is still active.

One more confusing thing is that in the example provided (chapter 5) there is an assumption that startSession creates PresentationSession with id that is the same as the presentationID given to it. It is the session.id that is restored from localStorage as the presentationID and then passed to joinSession call.

Did you have any discussion about possibility of having resumeSession method or restoring session via session.id? Please let me know if I should create an issue for any of those subjects on github.

Best regards,
--
Oleg Beletski
Principal Engineer
Samsung Electronics R&D, Finland, Espoo
o.beletski@samsung.com
Received on Thursday, 5 March 2015 11:10:10 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 5 March 2015 11:10:10 UTC