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

Re: [presentation-api] Separate interface for controlling page and presenting page

From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 Aug 2015 23:41:26 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-136528704-1441064485-sysbot+gh@w3.org>
@schien what do you think of:

```idl
interface Presentation : EventTarget {
  attribute PresentationSession? defaultRequest;
  readonly attribute PresentationReceiver? receiver;
};

interface PresentationReceiver {
  Promise<PresentationSession> getSession();
  Promise<sequence<PresentationSession>> getSessions();
  attribute EventHandler onsessionavailable;
};
```

I think it has the benefit of splitting the receiver and sender APIs 
and also provide a good way to find out whether the current browsing 
context is a receiver (ie. navigator.presentation.receiver is not 
null).

-- 
GitHub Notif of comment by mounirlamouri
See 
https://github.com/w3c/presentation-api/issues/91#issuecomment-136528704
Received on Monday, 31 August 2015 23:41:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 31 August 2015 23:41:27 UTC