mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-html5
synced 2025-12-30 18:31:46 +00:00
- It seems `SpiceDisplayConn` does not always have the array `this.o.sc.streams` set. - It also seems (stream?) images can be loaded before `streams` is set. - Without `streams`, or the specific stream matching `this.o.id`, `this.o.sc.streams[this.o.id].frames_loading` cannot be accessed. - The check for the specific stream woth `this.o.id` is already in place, this patch adds a check for `this.o.sc.streams` in `handle_draw_jpeg_onload`. - There might be a better place to ensure that `this.o.sc.streams` is initialized; this quick fix saved my bacon today though. Might be related to, and perhaps fix: - https://bugs.freedesktop.org/show_bug.cgi?id=94776 - https://bugzilla.redhat.com/show_bug.cgi?id=1323144 Signed-off-by: Joel Purra <mig@joelpurra.se> |
||
|---|---|---|
| src | ||
| .gitignore | ||
| apache.conf.sample | ||
| COPYING | ||
| COPYING.LESSER | ||
| Makefile | ||
| package.json.in | ||
| README | ||
| spice_auto.html | ||
| spice-html5.spec.in | ||
| spice.css | ||
| spice.html | ||
| TODO | ||
Spice Javascript client
Instructions and status as of August, 2016.
Requirements:
1. Modern Firefox or Chrome (IE will work, but badly)
2. A WebSocket proxy
websockify:
https://github.com/kanaka/websockify
works great.
Note that a patch to remove this requirement has been submitted
to the Spice project but not yet been accepted. Refer to this email:
https://lists.freedesktop.org/archives/spice-devel/2016-June/030552.html
3. A spice server
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.