You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filling out the list of available presentation displays for start #387
In short, if an app calls start without first calling getAvailability, the monitoring algorithm will simply create an empty list of available presentation displays which would make start end up with a NotFoundError exception.
I guess the easiest way to fix that would be to have the selection algorithm set the presentation display availability right before current step 7, as done in getAvailability. Something like:
If the presentation display availability for presentationRequest is null, then:
Set the presentation display availability for presentationRequest to a newly created PresentationAvailability object, and let A be that object.
Set the value property of A as follows:
false if the list of available presentation displays is empty.
true if there is at least one available presentation display for some member of presentationUrls. That is, there is an entry (presentationUrl, display) in the list of available presentation displays for some presentationUrl in presentationUrls.
false otherwise.
Create a tuple (A, presentationUrls) and add it to the set of presentation availability objects.
If the user agent is not monitoring the list of available presentation displays, run the steps to monitor the list of available presentation displays in parallel.
Now, in theory, there should be no reason to introduce PresentationAvailability objects in start. Oh well...
We could just have a step in start() before 7 that creates an availability object for the request, and a cleanup step to remove the object. Then monitoring would run and insert any available displays into the list for the request URLs.
Activity
tidoust commentedon Dec 1, 2016
Hmm, a better fix might be to complete the monitoring algorithm with a step such as:
If there is a pending request to select a presentation display, run the following step:
markafoltz commentedon Dec 3, 2016
We could just have a step in start() before 7 that creates an availability object for the request, and a cleanup step to remove the object. Then monitoring would run and insert any available displays into the list for the request URLs.
Issue w3c#387: Monitoring algo now takes pending request to start int…
Issue w3c#387: Use availabilitySet in the monitoring algorithm
Issue w3c#387: drop "exposed to JS" and allow monitoring aggregation
Addreses Issue 387 (#395)
Issue w3c#387: Update notes with @mfoltzgoogle suggestions
Issue #387: Monitoring algo takes pending request to start into accou…
markafoltz commentedon Dec 21, 2016
Should be addressed by PR #387.