Commit Graph

17 Commits

Author SHA1 Message Date
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
Tomáš Bohdálek
fb21664f6b Add checkbox to toggle debug console
This allows show or hide debug console under spice screen.
2017-06-22 12:54:20 +02: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
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
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
Alon Levy
96e6383995 spice.html: remove default password
Signed-off-by: Alon Levy <alevy@redhat.com>
2013-05-30 10:35:08 -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
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
Jeremy White
591269e398 Modify the template html to include a required file. 2012-09-24 16:31:50 -05:00
Jeremy White
f8f622157c initial 2012-06-04 17:22:01 +03:00