This directory contains a demo of a Presentation API controller and receiver. The demo supports flinging a URL to start a presentation and stopping the presentation.
The same executable is run for the controller and receiver; only the command line options affect the behavior. The command line options are:
$ osp_demo [-v] [friendly_name]-venables verbose logging.- Specifying
friendly_nameputs the demo in receiver mode and sets its name tofriendly_name. If no friendly name is given, the demo runs as a controller.
Because the demo acts like a shell and accepts commands on stdin, the logging
output is redirected to a separate file so it doesn't flood the same display.
You have to create these files on your machine before running the demo. For the
controller, this file should be named _cntl_fifo and for the receiver, it
should be named _recv_fifo. The simplest way to do this is so you can see the
output while the demo is running is to make these named pipes like so:
$ mkfifo _cntl_fifo _recv_fifoThen cat them in separate terminals while the demo is running.
connect <instance_name>: Build a connection to receiver namedinstance_name. All connectable receivers are discovered by discovery module and printed in the output log.avail <url>: Begin listening for all connected receivers that support the presentation ofurl.start <url> <instance_name>: Start a presentation ofurlon the receiver specified by theinstance_name.instance_namewill be printed in the output log onceavailhas been run. The demo only supports starting one presentation at a time.msg <string>: Sends a string message on the open presentation connection.close: Close the open presentation connection without terminating the presentation.reconnect: Reconnect the previously-connected presentation connection. This allows using themsgcommand again.term: Terminate the previously started presentation.
avail: Toggle whether the receiver is publishing itself as an available screen. The receiver starts in the publishing state.close: Close the open presentation connection without terminating the presentation.msg <string>: Sends a string message on the open presentation connection.term: Terminate the running presentation.