Go to file
Daniel P. Berrange 2c1a6b628e Add spice_auto.html for automated console display
Add a spice_auto.html which removes the form inputs and obtains
connection details from query parameters. The optional 'token'
parameter is an opaque string passed to the websockets server
to allow it to auto-determine the correct console. Otherwise
the host/port/password/etc can be provided explicitly.

This is sufficient to integrate SPICE HTML5 with OpenStack

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-01-21 14:10:48 -06:00
thirdparty initial 2012-06-04 17:22:01 +03:00
atKeynames.js work to improve keyboard keycode -> scancode processing 2012-08-17 13:54:53 +03:00
bitmap.js initial 2012-06-04 17:22:01 +03:00
COPYING initial 2012-06-04 17:22:01 +03:00
COPYING.LESSER initial 2012-06-04 17:22:01 +03:00
cursor.js initial 2012-06-04 17:22:01 +03:00
display.js support loading SPICE_IMAGE_TYPE_JPEG_ALPHA image types 2012-10-11 17:37:10 -05:00
enums.js implement handing of MJPEG display streams 2012-09-06 10:11:16 +03:00
inputs.js Discard input messages until input channel is ready 2012-09-26 10:22:42 -05:00
lz.js support decompressing LZ_IMAGE_TYPE_XXXA images 2012-10-11 17:32:55 -05:00
main.js initial 2012-06-04 17:22:01 +03:00
png.js initial 2012-06-04 17:22:01 +03:00
quic.js quic: implemenet QUIC_IMAGE_TYPE_RGBA decoding 2012-09-24 11:03:13 -05:00
README initial 2012-06-04 17:22:01 +03:00
spice_auto.html Add spice_auto.html for automated console display 2013-01-21 14:10:48 -06:00
spice.css initial 2012-06-04 17:22:01 +03:00
spice.html Modify the template html to include a required file. 2012-09-24 16:31:50 -05:00
spiceconn.js initial 2012-06-04 17:22:01 +03:00
spicedataview.js initial 2012-06-04 17:22:01 +03:00
spicemsg.js implement handing of MJPEG display streams 2012-09-06 10:11:16 +03:00
spicetype.js support loading SPICE_IMAGE_TYPE_JPEG_ALPHA image types 2012-10-11 17:37:10 -05:00
ticket.js initial 2012-06-04 17:22:01 +03:00
TODO rewrite quic.js to be a native javascript implementation 2012-09-13 18:32:38 +03:00
utils.js work to improve keyboard keycode -> scancode processing 2012-08-17 13:54:53 +03:00
wire.js initial 2012-06-04 17:22:01 +03:00

Prototype Spice Javascript client

Instructions and status as of June 1, 2012.

Requirements:

  1.  Modern Firefox or Chrome
      
  2.  A WebSocket proxy

      I've used websockify:
        https://github.com/kanaka/websockify
      works great.


  3.  A spice server

      At this point, I've tested with qemu hosting
      a Fedora image, a Vista image, and with Xspice.  
      Vista was pretty bad; I recommend either Linux or Xspice.

      ** Xspice has a processing issue; see this email:
         http://lists.freedesktop.org/archives/spice-devel/2012-May/009020.html


Optional:
  1.  A web server

      With firefox, you can just open file:///your-path-to-spice.html-here

      With Chrome, you have to set a secret config flag to do that, or 
      serve the files from a web server.


Steps:

  1.  Start the spice server

  2.  Start websockify; my command line looks like this:
        ./websockify 5959 localhost:5900

  3.  Fire up spice.html, set host + port + password, and click start


Status:

  The TODO file should be a fairly comprehensive list of tasks
  required to make this client more fully functional.

  As of June 1, 2012, this client is a nifty proof of concept,
  but a long way from being a useful production tool.