@@ -274,32 +274,33 @@ To learn which receivers are [=available presentation display=]s for a
274
274
particular URL or set of URLs, the controller may send a
275
275
presentation-url-availability-request message with the following values:
276
276
277
- - urls: A list of presentation URLs
277
+ - urls: A list of presentation URLs
278
278
279
- - watch-duration: The period of time that the controller is interested in
280
- receiving updates about the URLs, should the availability change.
279
+ - watch-duration: The period of time that the controller is interested in
280
+ receiving updates about the URLs, should the availability change.
281
281
282
- - watch-id: An identifier the receiver may use when sending updates about URL
283
- availability so that controller knows which URLs the receiver is referring to.
282
+ - watch-id: An identifier the receiver may use when sending updates about URL
283
+ availability so that controller knows which URLs the receiver is referring
284
+ to.
284
285
285
286
In response, the receiver should send one presentation-url-availability-response
286
287
message with the following values:
287
288
288
- - url-availabilities: A list of URL availability states (available, unavailable ,
289
- or invalid). Each state must correspond to the matching URL from the request by
290
- list index.
289
+ - url-availabilities: A list of URL availability states (available,
290
+ unavailable, or invalid). Each state must correspond to the matching URL
291
+ from the request by list index.
291
292
292
293
293
294
The receivers should later (up to the current time plus request
294
295
watch-duration) send presentation-url-availability-event messages if
295
296
URL availabilities change. Such events contain the following values:
296
297
297
- - watch-id: The watch-id given in the presentation-url-availability-response,
298
- used to refer to the presentation URLs whose availability has changed.
298
+ - watch-id: The watch-id given in the presentation-url-availability-response,
299
+ used to refer to the presentation URLs whose availability has changed.
299
300
300
- - url-availabilities: A list of URL availability states (available, unavailable ,
301
- or invalid). Each state must correspond to the URLs from the request referred
302
- to by the watch-id.
301
+ - url-availabilities: A list of URL availability states (available,
302
+ unavailable, or invalid). Each state must correspond to the URLs from the
303
+ request referred to by the watch-id.
303
304
304
305
Note that these messages are not broadcasted to all controllers. They are sent
305
306
individually to controllers that have requested availability for the URLs that
@@ -316,14 +317,14 @@ To start a presentation, the controller may send a
316
317
presentation-start-request message to the receiver with the following
317
318
values:
318
319
319
- - presentation-id: the presentation identifier
320
+ - presentation-id: the presentation identifier
320
321
321
- - url: the selected presentation URL
322
+ - url: the selected presentation URL
322
323
323
- - headers: headers that the receiver should use to fetch the
324
- presentationUrl. For example, section 6.6.1 of
325
- [[PRESENTATION-API|Presentation API]] says that the Accept-Language
326
- header should be provided.
324
+ - headers: headers that the receiver should use to fetch the
325
+ presentationUrl. For example, section 6.6.1 of
326
+ [[PRESENTATION-API|Presentation API]] says that the Accept-Language
327
+ header should be provided.
327
328
328
329
The presentation ID must follow the restrictions defined by
329
330
[[PRESENTATION-API|Presentation API]] section 6.1, in that it must
@@ -337,28 +338,28 @@ must respond with the appropriate result (such as invalid-url or timeout). If
337
338
it has succeeded, it must reply with a success result. Additionally, the
338
339
response must include the following:
339
340
340
- - connection-id: An ID that both agents can use to send connection messages
341
- to each other. It is chosen by the receiver for ease of implementation: if the
342
- message receiver chooses the connection-id, it may keep the ID unique across
343
- connections, thus making message demuxing/routing easier.
341
+ - connection-id: An ID that both agents can use to send connection messages
342
+ to each other. It is chosen by the receiver for ease of implementation: if
343
+ the message receiver chooses the connection-id, it may keep the ID unique
344
+ across connections, thus making message demuxing/routing easier.
344
345
345
346
<!-- TODO: Add optional HTTP response code to the response? -->
346
347
347
348
To send a presentation message, the controller or receiver may send a
348
349
presentation-connection-message with the following values:
349
350
350
- - connection-id: The ID from the presentation-start-response or
351
- presentation-connection-open-response messages.
351
+ - connection-id: The ID from the presentation-start-response or
352
+ presentation-connection-open-response messages.
352
353
353
- - message: the presentation message data.
354
+ - message: the presentation message data.
354
355
355
356
356
357
To terminate a presentation, the controller may send a
357
358
presentation-termination-request message with the following values:
358
359
359
- - presentation-id: The ID of the presentation to terminate.
360
+ - presentation-id: The ID of the presentation to terminate.
360
361
361
- - reason: The reason the presentation is being terminated.
362
+ - reason: The reason the presentation is being terminated.
362
363
363
364
364
365
When a receiving agent receives a presentation-termination-request, it should
@@ -368,9 +369,9 @@ a presentation-termination-event message. And it can send the same message if
368
369
it terminates a presentation without a request from a controller to do so. This
369
370
message contains the following values:
370
371
371
- - presentation-id: The ID of the presentation that was terminated.
372
+ - presentation-id: The ID of the presentation that was terminated.
372
373
373
- - reason: The reason the presentation was terminated.
374
+ - reason: The reason the presentation was terminated.
374
375
375
376
<!-- TODO: Split up reason into reason and whether it was triggered by the user
376
377
or not? -->
@@ -380,7 +381,7 @@ To accept incoming connections requests from controller, a receiver
380
381
must receive and process the presentation-connection-open-request
381
382
message which contains the following values:
382
383
383
- - presentation-id: The ID of the presentation to connect to.
384
+ - presentation-id: The ID of the presentation to connect to.
384
385
385
386
- url: The URL of the presentation to connect to.
386
387
@@ -390,38 +391,38 @@ presentation-connection-open-request message, send back a
390
391
presentation-connection-open-response message which contains the
391
392
following values:
392
393
393
- - result: a code indicating success or failure, and the reason for the failure
394
+ - result: a code indicating success or failure, and the reason for the failure
394
395
395
- - connection-id: An ID that both agents can use to send connection messages
396
- to each other. It is chosen by the receiver for ease of implementation (if the
397
- message receiver chooses the connection-id, it may keep the ID unique across
398
- connections, thus making message demuxing/routing easier).
396
+ - connection-id: An ID that both agents can use to send connection messages
397
+ to each other. It is chosen by the receiver for ease of implementation (if
398
+ the message receiver chooses the connection-id, it may keep the ID unique
399
+ across connections, thus making message demuxing/routing easier).
399
400
400
401
401
402
A controller may terminate a connection without terminating the presentation by
402
403
sending a presentation-connection-close-request message with the following
403
404
values:
404
405
405
- - connection-id: The ID of the connection to close.
406
+ - connection-id: The ID of the connection to close.
406
407
407
408
408
409
The receiver should, upon receipt of a presentation-connection-close-request,
409
410
send back a presentation-connection-close-response message with the following
410
411
values:
411
412
412
- - result: If the close succeed or failed, and if it failed why it failed.
413
+ - result: If the close succeed or failed, and if it failed why it failed.
413
414
414
415
The receiver may also close a connection without a request from the controller
415
416
to do so and without terminating a presentation. If it does so, it should send
416
417
a presentation-connection-close-event to the controller with the following
417
418
values:
418
419
419
- - connection-id: The ID of the connection that was closed
420
+ - connection-id: The ID of the connection that was closed
420
421
421
- - reason: The reason the connection was closed
422
+ - reason: The reason the connection was closed
422
423
423
- - error-message: A debug message suitable for a log or perhaps presented to the
424
- user with more explanation as to why it was closed.
424
+ - error-message: A debug message suitable for a log or perhaps presented to
425
+ the user with more explanation as to why it was closed.
425
426
426
427
<!-- TODO: Why does the Presentation API spec not mention the use of the close
427
428
message? -->
0 commit comments