Commit Graph

80 Commits

Author SHA1 Message Date
Martin Hradil
522a9eb991 spice-html5: spice_auto.html - actually use ?path when given
Right now, `spice_auto.html` reads the path from query string .. and
never actually does anything with it. This should make
`spice_auth.html` respect a path parametr when given.
2016-05-12 17:17:23 +02:00
Pavel Grunt
78022d150e quic: Add missing break
Spotted by coverity
2016-05-04 10:19:26 -05:00
Pavel Grunt
6b239731b4 filexfer: Remove wrongly placed semicolon
Spotted by coverity
2016-05-04 10:19:24 -05:00
Christophe Fergeau
54cc41299b Fix 2 typos in comments 2016-03-08 11:38:24 +01:00
Jeremy White
ab73d00948 Enable file transfer for spice_auto.html.
The work Pavel did on spice.html did not get fully transferred
into spice_auto.html; in particular, we need to append the xfer
div to the main area in order for file transfer to work.

This fixes that, and now drag + drop works in spice_auto.html.
2015-10-27 11:37:13 -05:00
Pavel Grunt
789071cbfa Set nonhandled messages as not implemented
Avoid spamming log
2015-09-09 09:05:05 +02:00
Pavel Grunt
bd5d261a37 Use name of channel instead of number
For unknown channel types the type number is still used, e.g.:
 "Channel type unknown-12 not implemented"
2015-09-09 09:04:59 +02:00
Pavel Grunt
289a760371 spiceconn.js: Add missing channel names 2015-09-09 09:04:53 +02:00
Pavel Grunt
4023af088b enums.js: Update for new channels 2015-09-09 09:04:48 +02:00
Pavel Grunt
302b782e77 display.js: Remove unreachable return 2015-09-09 09:04:39 +02:00
Jeremy White
b76c734d16 Add support for stream reports.
This helps video playback do a slightly better job of keeping up
in the browser.  It's not a dramatic effect, but enough to start making
video playback almost tolerable.
2015-06-04 15:41:48 -05:00
Jeremy White
84562db7e4 Implement support for sized data streams. 2015-06-04 15:41:41 -05:00
Jeremy White
e542bda56f Minor change to error message formating. 2015-06-04 15:41:36 -05:00
Jeremy White
c1e736b083 Prepare for release 0.1.6 2015-03-13 11:38:56 -05:00
Pavel Grunt
ff42bc7399 Add button for cancelling file transfer 2015-01-16 10:06:35 -06:00
Pavel Grunt
8d1ea67789 Add progress bar for file transfer 2015-01-16 10:06:34 -06:00
Pavel Grunt
84171b2406 Use WheelEvent instead of MouseWheelEvent
MouseWheelEvent is deprecated and not working in Firefox.
2015-01-15 12:56:20 -06:00
Pavel Grunt
54ee82f004 Inform agent about client's capabilities
The client should inform the agent about capabilities
when the connection is established. This avoid receiving unhandled
agent messages.
2015-01-15 12:43:43 -06:00
Pavel Grunt
566e4acc39 Read file only when have agent tokens
Stop reading a file when there are no tokens,
continue reading it when tokens arrive.
2015-01-15 09:00:03 -06:00
Pavel Grunt
50e2795771 Use drag and drop for transfering files from client to guest 2015-01-15 09:00:00 -06:00
Pavel Grunt
b9b8567c9d Implement methods for transfering files from client to guest
It is possible to transfer files from the client to the guest
using File API [0] when a spice vd agent is connected.

Methods for the transfer are based on spice-gtk implementation.

[0] http://www.w3.org/TR/file-upload/
2015-01-15 08:59:58 -06:00
Pavel Grunt
633f01050b Split agent data message into smaller chunks
Allowed size for SPICE_MSGC_MAIN_AGENT_DATA message is 2048 Bytes,
larger messages have to be splitted.
2015-01-15 08:59:55 -06:00
Pavel Grunt
1a4a98938a Send agent messages only when have agent tokens
Messages that were not sent are stored in the queue.
They will be sent later when the client receives more agent tokens.
2015-01-15 08:58:36 -06:00
Pavel Grunt
6a68399a23 Report SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS capability
We should report that we handle the connected tokens message
by setting the SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS capability.
2015-01-15 08:58:32 -06:00
Pavel Grunt
21e5c282ba Handle agent tokens 2015-01-15 08:58:30 -06:00
Frantisek Kobzik
b926f062f3 SPICE-HTML5: Improve error message
Current error message in SPICE-HTML5 error is poor (error-logging function
prints error.toString() which doesn't contain anything detailed).

This patch enhances this message in the following way:
 - error event contains target attribute ([1]),
 - the code in this patch checks for presence of 'url' attribute (which is
   contained in WebSocket object[2]). If the target contains url then
   meaningful message is logged.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Event
[2]: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
2014-10-31 15:18:19 -05:00
Jeremy White
dea87ff943 Use a modern number of agent tokens.
This keeps an XSpice server from spin looping, which it will do if
data is presented, but num_send_tokens == 0.
2014-10-29 16:33:29 -05:00
Jeremy White
097e2c2e30 Prepare for release 0.1.5 2014-09-25 12:10:11 -05:00
Jeremy White
1d97ec7385 If an agent is attached, enable dynamic resizing of the guest screen. 2014-09-06 10:06:43 -05:00
Jeremy White
a41f09a5f9 Enable the use of OPUS on spice_auto.html. 2014-08-01 10:38:03 -05:00
Vladik Romanovsky
293d405e15 Use wss scheme when accessing with https protocol
Hi,

Currently the websocket connection is only being established using
the ws scheme.
Adding support for wss scheme when using https protocol to allow
ssl connection.
2014-08-01 10:34:30 -05:00
Jeremy White
bc2bfd95bb Update the todo 2014-06-05 08:31:24 -05:00
Jeremy White
6c5f939e23 Add support for audio streams using the Opus encoding.
Requires a browser with MediaSource extension support, and
Opus support for the source buffers.  In practice, that is
Chrome and Firefox.
2014-05-20 12:59:27 -05:00
Jeremy White
deb555fb16 Tweak hexdump to not generate new lines. 2014-05-20 12:30:48 -05:00
Jeremy White
19ade3cf38 Add changelog for 0.1.4 2013-09-19 11:10:02 -05:00
Aric Stewart
bb746a03de Implement handling of SPICE_MSG_DISPLAY_INVAL_LIST
Also converts the display cache from an array to an object. This is to help enforce proper sparceness of the data as well as make it easier to reliably fully delete a given cache entry without affecting access to the remaining entries.
2013-09-18 09:06:07 -05:00
Aric Stewart
295073a954 implement and use a new dataview getUint64 2013-09-18 09:06:03 -05:00
Jeremy White
3056d62ae2 Send the client cache size correctly in little endian order so we
don't claim to have an infinitely large cache.
2013-09-13 15:39:17 -05:00
Jeremy White
366c0a3fca Give the Garbage collector a clue to recycle images; avoids
fairly massive memory leaks during video playback.
2013-09-12 10:13:47 -05:00
Jeremy White
c2bb090b16 Ack every message.
The failure to ack pings led to a nasty bug whereby an inactive client hangs.
The relatively recent change to monitor latency with ping exposed this bug.
2013-08-27 17:46:47 -05:00
Jordan Pittier
b0509ca449 Fix default websocket port detection in spice_auto.html
If server runs on port 80 or 443 the default value of
window.location.port is an empty string

Signed-off-by: Jordan Pittier <jordan.pittier-ext@cloudwatt.com>
2013-08-23 12:53:37 -05:00
Alon Levy
96e6383995 spice.html: remove default password
Signed-off-by: Alon Levy <alevy@redhat.com>
2013-05-30 10:35:08 -05:00
Thomas Goirand
2f5c7f7ab0 Adds missing mapping of the alphanumeric minus key. (spice-html5)
Hi,

I'm the Debian Developer working on spice-html5 (eg: I uploaded
spice-html5 recently in Debian Sid).

I noticed that the minus key on the alphanumeric block wasn't mapped.
This was particularly annoying on my laptop keyboard when using
spice-html5 to access remote servers (eg: many commands needs argument
with the minus sign), with the "no map for 173" alert box popping each
time...

The attached patch made it work with Firefox 21 (in fact, Iceweasel 21
in Debian). I don't know if it works on other browsers, but it worked
for me.

Cheers,

Thomas Goirand (zigo)

From ad9d69eb09f63538db06664a3d88d48ff56b2abb Mon Sep 17 00:00:00 2001
From: Thomas Goirand <thomas@goirand.fr>
Date: Sat, 25 May 2013 23:56:14 +0800
Subject: [PATCH] Adds missing mapping of the alphanumeric minus key.
2013-05-28 09:14:46 -05:00
Jeremy White
07c63c968c Correct spice_auto.html for a missing include for the spice array buffer. 2013-05-23 14:41:00 -05:00
Jeremy White
bcffac0aa4 Provide two levels of workaround for IE 10 cursor support.
The first approach is to use a moving image to simulate the cursor.
This does not work well, so a second approach, involving static
cursors is provided.  That requires a site administrator to precreate
all the cursors that can be used by a particular application set.

A warning message strongly suggests using a different browser as well.
2013-04-19 11:36:41 -05:00
Jeremy White
12fe9ebb96 Use document.documentElement.scrollXXX if document.body.scrollXXX is not present.
Provides compatibility for IE10.
2013-04-18 13:04:38 -05:00
Jeremy White
78e0d938cf Extend the native ArrayBuffer to add a slice() method if missing.
This allows IE10 to function.  Note that we would normally subclass
this type, but ArrayBuffer is implemented in native code, and so is
difficult to subclass.
2013-04-16 14:59:08 -05:00
Amos Benari
ec9ae0cbd6 added on succeess event 2013-03-19 09:00:38 -05:00
Amos Benari
828d975b2d added sendCtrlAltDel method. 2013-03-19 08:57:51 -05:00
Jeremy White
20fcfb5f57 Use release 2 2013-03-08 13:56:36 -06:00