Commit Graph

23 Commits

Author SHA1 Message Date
Rafael Gieschke
b4474e3d76 HACK: force H.264 with WebCodecs 2024-10-14 19:34:22 +02:00
Jonathan Race
56ddb3005e addition of ctrl-alt-delete functionality on side navigation, with associated js eventlistener 2020-09-04 15:37:00 -04:00
Jonathan Race
480441dbf4 Style updates to include layout structure, side navigation, hidden menu, consolidation of formatting, button effects, and color shift 2020-09-04 15:34:25 -04:00
Cédric Bosdonnat
dfa40a73ff Prompt password in spice_auto.html
In case the user didn't provide any password, we want to prompt him for
it. Try once and if we get an permission denied error, then ask the
password and retry to connect.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2019-02-14 12:46:09 -06:00
Cédric Bosdonnat
df374203dd Fix disconnect() code
The disconnect() function were not checking the existence of the file
transfer area element, leading to stop the disconnect() before its end.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2019-02-14 12:46:08 -06:00
Cédric Bosdonnat
ef82543195 Move sources into their own folder
To add some more order to the folder, move the JS files into their own
src folder.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2019-02-14 12:46:07 -06:00
Cédric Bosdonnat
7f5b9f54a5 Expose all needed pieces in main.js
We don't want the users to rely on anything else than main.js. All the
helper functions from the other files are thus imported in main and
exported there too.

This way all the user needs to import is:

    import * as SpiceHtml5 from './main.js';

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2019-02-14 12:46:05 -06:00
Cédric Bosdonnat
2c08f20c25 Introduce ES6 modules
Avoid cluttering the global namespace. Use ES6 modules in order to
to this.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2019-02-14 12:46:02 -06:00
Oliver Gutierrez
fc0a664e7e Basic SPICE port implementation 2016-10-10 13:52:41 +02:00
Oliver Gutierrez
1f4959e3c2 Fixed trailing whitespaces in several files 2016-09-28 15:03:48 -05:00
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
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
8d1ea67789 Add progress bar for file transfer 2015-01-16 10:06:34 -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
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
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
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
b001230697 Trim spaces at line ends to keep git happy. 2013-01-21 14:11:36 -06:00
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