Re: [remote-playback] Allow websites to stop the remote playback

Mounir and I agreed on (well, we didn't discussed the name).

```webidl
partial interface RemotePlayback {
    Promise<void> showUI();
}
```

The ```Promise``` returned is rejected if the UI cannot be shown for 
some reason, and otherwise fulfilled after it's closed. The page will 
then check the ```state``` to figure out if it's now connecting to a 
device or is disconnected.

I like ```changeState``` as the method name as it's clear what's 
happening from the page point of view while very flexible from the 
user agent point of view but ```showXXX``` probably gives better 
expectations to the developer.

-- 
GitHub Notification of comment by avayvod
Please view or discuss this issue at 
https://github.com/w3c/remote-playback/issues/4#issuecomment-229410039
 using your GitHub account

Received on Wednesday, 29 June 2016 16:23:39 UTC