Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce PresentationRequest and defaultRequest. #146

Merged
merged 4 commits into from
Jul 27, 2015

Conversation

mounirlamouri
Copy link
Member

Closes #138, #86 and #26.

.catch(endSession);
// presId is mandatory when joining a session.
if (presId) {
var request = new PresentationRequest(presUrl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in the examples, we are reusing all the definitions from the previous ones, so there's no need to create a new PresentationRequest in each example. It might confuse developers, who will create a separate request availability, starting and joining presentation, etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@mounirlamouri
Copy link
Member Author

Please take another look.

@@ -332,8 +333,9 @@
availability.onchange = function() { handleAvailabilityChange(this.value); };
}.catch(function() {
// Availability monitoring is not supported by the platform, discovery of presentation
// displays will happen only after startSession() call. Pretend the devices are
// available for simplicity (one could implement the third state for the button).
// displays will happen only after PresentationRequest.start() call. Pretend the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after request.start()

@markafoltz
Copy link
Contributor

Thanks for the contribution @mounirlamouri and the comments @avayvod and @mwatson2. I made some inline comments which I can implement in a followup PR.

markafoltz added a commit that referenced this pull request Jul 27, 2015
Introduce PresentationRequest and defaultRequest.
@markafoltz markafoltz merged commit 8b4e2de into w3c:gh-pages Jul 27, 2015
markafoltz added a commit that referenced this pull request Jul 28, 2015
markafoltz added a commit that referenced this pull request Jul 28, 2015
Editorial changes to pull request #146
@mounirlamouri mounirlamouri deleted the presentation-request branch September 1, 2015 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants