[Spice-devel] spice-html5

2022-09-30 Thread Kormiltcev Nikita
Good day! I want to install spice-html5 to proxmox. I read instruction and I didn't understand. Can you help me pls?

[Spice-devel] spice-html5 supporting password

2021-03-02 Thread 王杰东
 SPICE protocol is important for openstack project now i use openstack Queens release on centos 7, with configuration of nova spice,  everything is ok, i can use vm with nova-spicehtml5proxy with Chrome.  then when i configure vm with spice password, i can never connect vm from chrome, and it print

Re: [Spice-devel] [spice-html5][PATCH v2 00/13] Prepare submission for npmjs

2019-02-14 Thread Jeremy White
Hi Cédric, On 2/14/19 3:44 AM, Cédric Bosdonnat wrote: Hi Jeremy, I fixed the missing SpiceHtml5: that was a mistake in the code rework. Thanks for spotting it. As for the whitespaces, I had more troubles with them. A big lot of them was coming from dos line endings. I added a commit to conver

Re: [Spice-devel] [spice-html5][PATCH v2 02/13] dos2unix sha1.js

2019-02-14 Thread Jeremy White
Hey Cédric, I'm afraid you haven't got your line endings issue worked out yet: git am /tmp/cedric/\[spice-html5\]\[PATCH\ v2\ 02_13\]\ dos2unix\ sha1.js\ -\ Cédric\ Bosdonnat\ \\ -\ 2019-02-14\ 0344.eml Applying: dos2unix sha1.js error: patch failed: thirdparty/sha1.js:1 error: thirdparty/sha

[Spice-devel] [spice-html5][PATCH v2 11/13] resize_helper, no message box case

2019-02-14 Thread Cédric Bosdonnat
The resize_handler need to check for the existence of the message box before computing it's size. --- src/resize.js | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/resize.js b/src/resize.js index 32282fd..c8d87d9 100644 --- a/src/resize.js +++ b/src/r

[Spice-devel] [spice-html5][PATCH v2 13/13] More reliable mouse position reporting

2019-02-14 Thread Cédric Bosdonnat
Depending on the structure of the page, the computed mouse position was not correct. Typically the case happend when there is no offset between the canvas and the view area, but an offset on the view area. The MouseEvent.offsetX and offsetY functions are now widely enough spread to use them and av

[Spice-devel] [spice-html5][PATCH v2 05/13] Expose all needed pieces in main.js

2019-02-14 Thread Cédric Bosdonnat
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'; --- main.js | 9 - spice.html

[Spice-devel] [spice-html5][PATCH v2 02/13] dos2unix sha1.js

2019-02-14 Thread Cédric Bosdonnat
--- thirdparty/sha1.js | 692 ++--- 1 file changed, 346 insertions(+), 346 deletions(-) diff --git a/thirdparty/sha1.js b/thirdparty/sha1.js index 8118cb4..363c83d 100644 --- a/thirdparty/sha1.js +++ b/thirdparty/sha1.js @@ -1,346 +1,346 @@ -/* - * A JavaSc

[Spice-devel] [spice-html5][PATCH v2 12/13] resize_helper: round sizes down

2019-02-14 Thread Cédric Bosdonnat
If we round up, we may end up with a display slightly bigger than what the window can have, thus adding scroll bars. When rounding down we avoid this problems. --- src/resize.js | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resize.js b/src/resize.js index c8d87d9.

[Spice-devel] [spice-html5][PATCH v2 01/13] CSS: don't force the background color or inputs

2019-02-14 Thread Cédric Bosdonnat
When forcing the background of the input fields, this makes them unreadable for dark themed browsers. --- spice.css | 1 - 1 file changed, 1 deletion(-) diff --git a/spice.css b/spice.css index ee1b2f3..4c61cb3 100644 --- a/spice.css +++ b/spice.css @@ -36,7 +36,6 @@ body #login input { pa

[Spice-devel] [spice-html5][PATCH v2 06/13] Prepare publishing on npmjs

2019-02-14 Thread Cédric Bosdonnat
Add package.json needed to publish on npmjs. --- package.json | 21 + 1 file changed, 21 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 000..21a8b63 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ +

[Spice-devel] [spice-html5][PATCH v2 07/13] Move sources into their own folder

2019-02-14 Thread Cédric Bosdonnat
To add some more order to the folder, move the JS files into their own src folder. --- package.json| 2 +- spice.html | 2 +- spice_auto.html | 2

[Spice-devel] [spice-html5][PATCH v2 09/13] Prompt password in spice_auto.html

2019-02-14 Thread Cédric Bosdonnat
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. --- spice_auto.html | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spice_auto.html b/spice_au

[Spice-devel] [spice-html5][PATCH v2 10/13] Document onsuccess callback

2019-02-14 Thread Cédric Bosdonnat
--- src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.js b/src/main.js index be73828..4a37b55 100644 --- a/src/main.js +++ b/src/main.js @@ -56,6 +56,8 @@ import { resize_helper, handle_resize } from './resize.js'; ** onagent (optional) If given, a function

[Spice-devel] [spice-html5][PATCH v2 04/13] Remove duplicated enums

2019-02-14 Thread Cédric Bosdonnat
--- enums.js | 7 --- 1 file changed, 7 deletions(-) diff --git a/enums.js b/enums.js index 9d31148..db13584 100644 --- a/enums.js +++ b/enums.js @@ -320,13 +320,6 @@ export var Constants = { LZ_IMAGE_TYPE_XXXA: 10, - QUIC_IMAGE_TYPE_INVALID : 0, - QUIC_IMAGE_TYPE_GRAY: 1, -

[Spice-devel] [spice-html5][PATCH v2 08/13] Fix disconnect() code

2019-02-14 Thread Cédric Bosdonnat
The disconnect() function were not checking the existence of the file transfer area element, leading to stop the disconnect() before its end. --- spice.html | 4 +++- spice_auto.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spice.html b/spice.html index 9387076

[Spice-devel] [spice-html5][PATCH v2 00/13] Prepare submission for npmjs

2019-02-14 Thread Cédric Bosdonnat
Hi Jeremy, I fixed the missing SpiceHtml5: that was a mistake in the code rework. Thanks for spotting it. As for the whitespaces, I had more troubles with them. A big lot of them was coming from dos line endings. I added a commit to convert sha1.js to unix line endings, but for some reason, git a

Re: [Spice-devel] [spice-html5][PATCH 00/12] Prepare for npmjs publication

2019-02-13 Thread Jeremy White
Hi Cédric, Thank you for this! This is very useful work, and I appreciate you taking the time to work on it. I've been through all of the patches, and I think everything looks great. However, your 02 patch in this sequence has a lot of trailing white space; could you eliminate that? Also,

[Spice-devel] [spice-html5][PATCH 10/12] resize_helper, no message box case

2019-02-11 Thread Cédric Bosdonnat
The resize_handler need to check for the existence of the message box before computing it's size. --- src/resize.js | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/resize.js b/src/resize.js index 32282fd..c8d87d9 100644 --- a/src/resize.js +++ b/src/r

[Spice-devel] [spice-html5][PATCH 11/12] resize_helper: round sizes down

2019-02-11 Thread Cédric Bosdonnat
If we round up, we may end up with a display slightly bigger than what the window can have, thus adding scroll bars. When rounding down we avoid this problems. --- src/resize.js | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resize.js b/src/resize.js index c8d87d9.

[Spice-devel] [spice-html5][PATCH 12/12] More reliable mouse position reporting

2019-02-11 Thread Cédric Bosdonnat
Depending on the structure of the page, the computed mouse position was not correct. Typically the case happend when there is no offset between the canvas and the view area, but an offset on the view area. The MouseEvent.offsetX and offsetY functions are now widely enough spread to use them and av

[Spice-devel] [spice-html5][PATCH 09/12] Document onsuccess callback

2019-02-11 Thread Cédric Bosdonnat
--- src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.js b/src/main.js index be73828..4a37b55 100644 --- a/src/main.js +++ b/src/main.js @@ -56,6 +56,8 @@ import { resize_helper, handle_resize } from './resize.js'; ** onagent (optional) If given, a function

[Spice-devel] [spice-html5][PATCH 05/12] Prepare publishing on npmjs

2019-02-11 Thread Cédric Bosdonnat
Add package.json needed to publish on npmjs. --- package.json | 21 + 1 file changed, 21 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 000..21a8b63 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ +

[Spice-devel] [spice-html5][PATCH 08/12] Prompt password in spice_auto.html

2019-02-11 Thread Cédric Bosdonnat
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. --- spice_auto.html | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spice_auto.html b/spice_au

[Spice-devel] [spice-html5][PATCH 06/12] Move sources into their own folder

2019-02-11 Thread Cédric Bosdonnat
To add some more order to the folder, move the JS files into their own src folder. --- package.json| 2 +- spice.html | 1 - spice_auto.html | 2

[Spice-devel] [spice-html5][PATCH 07/12] Fix disconnect() code

2019-02-11 Thread Cédric Bosdonnat
The disconnect() function were not checking the existence of the file transfer area element, leading to stop the disconnect() before its end. --- spice.html | 4 +++- spice_auto.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spice.html b/spice.html index b789398

[Spice-devel] [spice-html5][PATCH 03/12] Remove duplicated enums

2019-02-11 Thread Cédric Bosdonnat
--- enums.js | 7 --- 1 file changed, 7 deletions(-) diff --git a/enums.js b/enums.js index 9d31148..db13584 100644 --- a/enums.js +++ b/enums.js @@ -320,13 +320,6 @@ export var Constants = { LZ_IMAGE_TYPE_XXXA: 10, - QUIC_IMAGE_TYPE_INVALID : 0, - QUIC_IMAGE_TYPE_GRAY: 1, -

[Spice-devel] [spice-html5][PATCH 04/12] Expose all needed pieces in main.js

2019-02-11 Thread Cédric Bosdonnat
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'; --- main.js | 9 - spice.html

[Spice-devel] [spice-html5][PATCH 00/12] Prepare for npmjs publication

2019-02-11 Thread Cédric Bosdonnat
Hi Jeremy, all, Here is the series that moves everything into a module and avoid cluttering the global namespace. This also includes some fixes for bugs I found while integrating in a third party website. Cédric Bosdonnat (12): CSS: don't force the background color or inputs Introduce ES6 mod

[Spice-devel] [spice-html5][PATCH 01/12] CSS: don't force the background color or inputs

2019-02-11 Thread Cédric Bosdonnat
When forcing the background of the input fields, this makes them unreadable for dark themed browsers. --- spice.css | 1 - 1 file changed, 1 deletion(-) diff --git a/spice.css b/spice.css index ee1b2f3..4c61cb3 100644 --- a/spice.css +++ b/spice.css @@ -36,7 +36,6 @@ body #login input { pa

Re: [Spice-devel] [spice-html5]Converting to NodeJS

2019-02-04 Thread Cedric Bosdonnat
On Mon, 2019-02-04 at 08:30 -0600, Jeremy White wrote: > > > I'd be delighted if spice-html5 had a proper name space! > > > > How should we proceed? I could implement this using ES6 exports, > > but > > that rules out really old browsers. Not sure if CommonJS exports > > would > > cover a broader

Re: [Spice-devel] [spice-html5]Converting to NodeJS

2019-02-04 Thread Jeremy White
I'd be delighted if spice-html5 had a proper name space! How should we proceed? I could implement this using ES6 exports, but that rules out really old browsers. Not sure if CommonJS exports would cover a broader audience thought. To some extent, spice-html5 does not support truly old browser

Re: [Spice-devel] [spice-html5]Converting to NodeJS

2019-02-04 Thread Cedric Bosdonnat
On Fri, 2019-02-01 at 13:07 -0600, Jeremy White wrote: > On 2/1/19 11:55 AM, Cedric Bosdonnat wrote: > > I'm pondering converting spice-html5 before submitting it to > > npmjs.org. > > In the move I'ld move everythin into a SpiceHtml5 namespace. > > > > How does that sound? I'm ready to invest som

Re: [Spice-devel] [spice-html5]Converting to NodeJS

2019-02-01 Thread Jeremy White
Hi Cedric, On 2/1/19 11:55 AM, Cedric Bosdonnat wrote: Hi Jeremy, I'm pondering converting spice-html5 before submitting it to npmjs.org. In the move I'ld move everythin into a SpiceHtml5 namespace. How does that sound? I'm ready to invest some effort into it, but I'ld rather to have your ACK

[Spice-devel] [spice-html5]Converting to NodeJS

2019-02-01 Thread Cedric Bosdonnat
Hi Jeremy, I'm pondering converting spice-html5 before submitting it to npmjs.org. In the move I'ld move everythin into a SpiceHtml5 namespace. How does that sound? I'm ready to invest some effort into it, but I'ld rather to have your ACK before ;) Regards -- Cedric ___

Re: [Spice-devel] [spice-html5 v2] display: Only use display channel with id 0

2018-07-18 Thread Jeremy White
Also worked for me. Acked-by: Jeremy White On 07/17/2018 10:04 AM, Christophe Fergeau wrote: spice-html5 does not support multiple display channels, and will only use the first one offered by spice-server, and ignore the others. This can cause issues when using a VM with a configured but unus

Re: [Spice-devel] [spice-html5 v2] display: Only use display channel with id 0

2018-07-18 Thread Frediano Ziglio
> > spice-html5 does not support multiple display channels, and will only > use the first one offered by spice-server, and ignore the others. This > can cause issues when using a VM with a configured but unused > org.spice-space.stream.0 spice port as this will create a 'fake' display > channel wh

Re: [Spice-devel] [spice-html5 v2] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Jeremy White
Acked-by: Jeremy White On 07/17/2018 10:18 AM, Christophe Fergeau wrote: log_draw() is used to debug drawing commands by dumping drawing information to the JS console. This commit adds dumping of missing data for uncompressed bitmaps. The 'stride' parameter is important, as spice-html5 currentl

[Spice-devel] [spice-html5 v2] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Christophe Fergeau
log_draw() is used to debug drawing commands by dumping drawing information to the JS console. This commit adds dumping of missing data for uncompressed bitmaps. The 'stride' parameter is important, as spice-html5 currently does not deal properly with such bitmaps. Signed-off-by: Christophe Fergea

Re: [Spice-devel] [spice-html5] display: Only use display channel with id 0

2018-07-17 Thread Christophe Fergeau
On Tue, Jul 17, 2018 at 09:51:28AM -0400, Frediano Ziglio wrote: > > > > spice-html5 does not support multiple display channels, and will only > > use the first one offered by spice-server, and ignore the others. This > > can cause issues when using a VM with a configured but unused > > org.spice-

[Spice-devel] [spice-html5 v2] display: Only use display channel with id 0

2018-07-17 Thread Christophe Fergeau
spice-html5 does not support multiple display channels, and will only use the first one offered by spice-server, and ignore the others. This can cause issues when using a VM with a configured but unused org.spice-space.stream.0 spice port as this will create a 'fake' display channel which is offere

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Christophe Fergeau
On Tue, Jul 17, 2018 at 09:00:33AM -0500, Jeremy White wrote: > > > > diff --git a/display.js b/display.js > > > > index 7719b23..c55b686 100644 > > > > --- a/display.js > > > > +++ b/display.js > > > > @@ -769,6 +769,12 @@ SpiceDisplayConn.prototype.log_draw = > > > > function(prefix, draw) > > >

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Jeremy White
diff --git a/display.js b/display.js index 7719b23..c55b686 100644 --- a/display.js +++ b/display.js @@ -769,6 +769,12 @@ SpiceDisplayConn.prototype.log_draw = function(prefix, draw) str += "; src_bitmap type " + draw.data.src_bitmap.descriptor.type + ", flags " + draw.data.src_bi

Re: [Spice-devel] [spice-html5] display: Only use display channel with id 0

2018-07-17 Thread Frediano Ziglio
> > spice-html5 does not support multiple display channels, and will only > use the first one offered by spice-server, and ignore the others. This > can cause issues when using a VM with a configured but unused > org.spice-space.stream.0 spice port as this will create a 'fake' display > channel wh

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Christophe Fergeau
On Mon, Jul 16, 2018 at 10:03:23AM -0500, Jeremy White wrote: > Hey Christophe, > > On 07/12/2018 11:07 AM, Christophe Fergeau wrote: > > log_draw() is used to debug drawing commands by dumping drawing > > information to the JS console. This commit adds dumping of missing data > > for uncompressed

[Spice-devel] [spice-html5] display: Only use display channel with id 0

2018-07-17 Thread Christophe Fergeau
spice-html5 does not support multiple display channels, and will only use the first one offered by spice-server, and ignore the others. This can cause issues when using a VM with a configured but unused org.spice-space.stream.0 spice port as this will create a 'fake' display channel which is offere

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-16 Thread Jeremy White
Hey Christophe, On 07/12/2018 11:07 AM, Christophe Fergeau wrote: log_draw() is used to debug drawing commands by dumping drawing information to the JS console. This commit adds dumping of missing data for uncompressed bitmaps. The 'stride' parameter is important, as spice-html5 currently does n

[Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-12 Thread Christophe Fergeau
log_draw() is used to debug drawing commands by dumping drawing information to the JS console. This commit adds dumping of missing data for uncompressed bitmaps. The 'stride' parameter is important, as spice-html5 currently does not deal properly with such bitmaps. Signed-off-by: Christophe Fergea

Re: [Spice-devel] [spice-html5] Check if streams array exists in handle_draw_jpeg_onload

2018-05-18 Thread Jeremy White
On 05/16/2018 05:17 AM, Christophe Fergeau wrote: From: Joel Purra - 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`, `t

[Spice-devel] [spice-html5] Check if streams array exists in handle_draw_jpeg_onload

2018-05-16 Thread Christophe Fergeau
From: Joel Purra - 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 b

[Spice-devel] spice-html5 vs =spice-web-client

2017-07-08 Thread Vasiliy Tolstov
Any news about integration to spice-html5 improvements from https://github.com/eyeos/spice-web-client.git ? Or what is the feature of this two projects? -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru ___ Spice-devel mailing list Spice-devel@lists.free

Re: [Spice-devel] Spice-Html5 Client Query

2016-12-15 Thread Uri Lublin
On 12/14/2016 08:05 PM, Shirley Arava wrote: Hi, I was looking for some sort of guidance as to where I was going wrong with the spice protocol requirements. We are currently trying to use SPICE-html5 client to provide remote access to Virtual Machines hosted on a Xen hypervisor. It would be real

[Spice-devel] Spice-Html5 Client Query

2016-12-14 Thread Shirley Arava
Hi, I was looking for some sort of guidance as to where I was going wrong with the spice protocol requirements. We are currently trying to use SPICE-html5 client to provide remote access to Virtual Machines hosted on a Xen hypervisor. It would be really helpful if you could provide us some inputs

Re: [Spice-devel] [spice-html5 stream 4/5] Setting src to null generates console log messages.

2016-10-04 Thread Pavel Grunt
Hi, maybe: "Use empty image instead of null to avoid warnings" On Wed, 2016-09-28 at 15:32 -0500, Jeremy White wrote: > Instead, let's set it to an empty gif.  Should have the > same benefit. > > Signed-off-by: Jeremy White Acked-by: Pavel Grunt > --- >  display.js | 2 +- >  utils.js   | 5 +++

Re: [Spice-devel] [spice-html5 audio 0/4] Audio tuneup patch set

2016-10-03 Thread Oliver Gutierrez
I've tested both this patch series and the video ones. In Firefox works without any problems. In Chrome I have no audio at all, but I do not have it also with master. Cheers On Mon, Oct 3, 2016 at 10:21 AM, Pavel Grunt wrote: > Hi, > > looks good to me, ACK > > Pavel > > On Wed, 2016-09-28 at

Re: [Spice-devel] [spice-html5 stream 1/5] Do not wait for the source buffer open callback to start stream creation.

2016-10-03 Thread Pavel Grunt
On Wed, 2016-09-28 at 15:32 -0500, Jeremy White wrote: > Otherwise, we end up discarding stream data messages, and our decode > can become corrupted, notably on Chrome. > > This way, we should not lose any messages while we are waiting for > source buffer creation. > > Signed-off-by: Jeremy White

Re: [Spice-devel] [spice-html5 stream 2/5] Improve stream debug messages slightly.

2016-10-03 Thread Pavel Grunt
On Wed, 2016-09-28 at 15:32 -0500, Jeremy White wrote: > Signed-off-by: Jeremy White Acked-by: Pavel Grunt > --- >  display.js | 9 ++--- >  1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/display.js b/display.js > index 9fc13c0..6c6b962 100644 > --- a/display.js > +++ b/disp

Re: [Spice-devel] [spice-html5 stream 3/5] If MediaSource is not available, do not report the vp8 or opus caps.

2016-10-03 Thread Pavel Grunt
On Wed, 2016-09-28 at 15:32 -0500, Jeremy White wrote: > Signed-off-by: Jeremy White Acked-by: Pavel Grunt > --- >  spiceconn.js | 27 +-- >  1 file changed, 17 insertions(+), 10 deletions(-) > > diff --git a/spiceconn.js b/spiceconn.js > index 9651b47..33e7388 100644 > --

Re: [Spice-devel] [spice-html5 stream 5/5] Protect against an mjpeg stream image draw occuring after stream destruction.

2016-10-03 Thread Pavel Grunt
On Wed, 2016-09-28 at 15:32 -0500, Jeremy White wrote: > Signed-off-by: Jeremy White Acked-by: Pavel Grunt > --- >  display.js | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/display.js b/display.js > index d9bdd9f..e26bff8 100644 > --- a/display.js > +++ b/display.j

Re: [Spice-devel] [spice-html5 audio 0/4] Audio tuneup patch set

2016-10-03 Thread Pavel Grunt
Hi, looks good to me, ACK Pavel On Wed, 2016-09-28 at 15:25 -0500, Jeremy White wrote: > Firefox and Chrome have both drifted somewhat over the past > few years, and audio playback is no longer as robust in spice-html5 > as it once was. > > Further, the MediaSource specification is a bit more s

[Spice-devel] [spice-html5 stream 0/5] Modest improvements for video streaming

2016-09-28 Thread Jeremy White
In testing audio in conjunction with video playback, I made a number of fairly modest improvements to the spice-html5 streaming support. This patch set provides those; with this set, and the prior audio set, you can arguably play videos using spice-html5 and the result is usable. Jeremy White (5)

[Spice-devel] [spice-html5 stream 1/5] Do not wait for the source buffer open callback to start stream creation.

2016-09-28 Thread Jeremy White
Otherwise, we end up discarding stream data messages, and our decode can become corrupted, notably on Chrome. This way, we should not lose any messages while we are waiting for source buffer creation. Signed-off-by: Jeremy White --- display.js | 23 ++- 1 file changed, 10 in

[Spice-devel] [spice-html5 stream 2/5] Improve stream debug messages slightly.

2016-09-28 Thread Jeremy White
Signed-off-by: Jeremy White --- display.js | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/display.js b/display.js index 9fc13c0..6c6b962 100644 --- a/display.js +++ b/display.js @@ -535,7 +535,10 @@ SpiceDisplayConn.prototype.process_channel_message = function(msg)

[Spice-devel] [spice-html5 stream 5/5] Protect against an mjpeg stream image draw occuring after stream destruction.

2016-09-28 Thread Jeremy White
Signed-off-by: Jeremy White --- display.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display.js b/display.js index d9bdd9f..e26bff8 100644 --- a/display.js +++ b/display.js @@ -963,8 +963,8 @@ function handle_draw_jpeg_onload() this.o.sc.surfaces[this.o.base

[Spice-devel] [spice-html5 stream 3/5] If MediaSource is not available, do not report the vp8 or opus caps.

2016-09-28 Thread Jeremy White
Signed-off-by: Jeremy White --- spiceconn.js | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/spiceconn.js b/spiceconn.js index 9651b47..33e7388 100644 --- a/spiceconn.js +++ b/spiceconn.js @@ -127,21 +127,28 @@ SpiceConn.prototype = )

[Spice-devel] [spice-html5 stream 4/5] Setting src to null generates console log messages.

2016-09-28 Thread Jeremy White
Instead, let's set it to an empty gif. Should have the same benefit. Signed-off-by: Jeremy White --- display.js | 2 +- utils.js | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/display.js b/display.js index 6c6b962..d9bdd9f 100644 --- a/display.js +++ b/display.js @@

[Spice-devel] [spice-html5 audio 2/4] Revise sound packet time sequencing for a more recent Firefox.

2016-09-28 Thread Jeremy White
Around version 45, Firefox started being very particular about the time stamps put into the Opus stream. The time stamps from the Spice server are somewhat irregular. They mostly arrive every 10 ms, but sometimes it is 11, or sometimes with two time stamps the same in a row. The previous logic

[Spice-devel] [spice-html5 audio 0/4] Audio tuneup patch set

2016-09-28 Thread Jeremy White
Firefox and Chrome have both drifted somewhat over the past few years, and audio playback is no longer as robust in spice-html5 as it once was. Further, the MediaSource specification is a bit more stable than it was when the initial implementation was written. This patch set tunes the spice-html5

[Spice-devel] [spice-html5 audio 4/4] Implement support for the playback stop message.

2016-09-28 Thread Jeremy White
This allows audio processing to be more robust in Firefox. Signed-off-by: Jeremy White --- playback.js | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/playback.js b/playback.js index 55dc0e8..48d4cdd 100644 --- a/playback.js +++ b/playback.js @@ -158,7 +158,

[Spice-devel] [spice-html5 audio 1/4] Use modern brower information to detect underrun.

2016-09-28 Thread Jeremy White
We previously had a fairly crude 'gap detection', but browsers are largely supporting the modern buffer semantics, and we can now rely on them to detect under runs for us. This improves audio in Chrome while playing large videos. Signed-off-by: Jeremy White --- playback.js | 30

[Spice-devel] [spice-html5 audio 3/4] Rely on the auto play attribute.

2016-09-28 Thread Jeremy White
Browsers now reliably autoplay, and issuing play prematurely can generate an error in both Firefox and Chrome. Hence we can simply remove this call and audio seems to work fine. Signed-off-by: Jeremy White --- playback.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/playback.js b/playb

Re: [Spice-devel] spice-html5: support for VP8 codec format

2016-07-12 Thread Pavel Grunt
Hi, ack the series. Thanks, Pavel On Fri, 2016-07-01 at 15:03 -0500, Jeremy White wrote: > This patch series introduces support for VP8 codecs to the > spice-html5 client. > > The first few patches simply introduce debug tools; the money > patches are the 4th, 5th and 6th patches. > > This wor

[Spice-devel] [spice-html5 2/6] Add tools for debugging media source playback events.

2016-07-01 Thread Jeremy White
Signed-off-by: Jeremy White --- playback.js | 63 - utils.js| 53 +++ 2 files changed, 115 insertions(+), 1 deletion(-) diff --git a/playback.js b/playback.js index 36e6611..96efb08 10

[Spice-devel] spice-html5: support for VP8 codec format

2016-07-01 Thread Jeremy White
This patch series introduces support for VP8 codecs to the spice-html5 client. The first few patches simply introduce debug tools; the money patches are the 4th, 5th and 6th patches. This works in Firefox 45. It works in Chrome for small browser window sizes; for larger sizes, Chrome appears to

[Spice-devel] [spice-html5 4/6] Revise the webm files to more correctly identify audio tracks.

2016-07-01 Thread Jeremy White
Signed-off-by: Jeremy White --- playback.js | 5 - webm.js | 11 +++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/playback.js b/playback.js index 96efb08..ea5017f 100644 --- a/playback.js +++ b/playback.js @@ -186,10 +186,13 @@ SpicePlaybackConn.prototype.start_

[Spice-devel] [spice-html5 6/6] Send stream process reports after we have processed them.

2016-07-01 Thread Jeremy White
Previously, we sent them strictly upon receipt. However, receiving is fast; by adding in some of the processing time (i.e. queueing and so on), we encourage the adaptive rate control to slow down. Signed-off-by: Jeremy White --- display.js | 81 +++---

[Spice-devel] [spice-html5 5/6] Add support for the vp8 codec type.

2016-07-01 Thread Jeremy White
Signed-off-by: Jeremy White --- display.js | 230 ++- enums.js | 6 ++ spiceconn.js | 5 +- utils.js | 1 + webm.js | 98 + 5 files changed, 337 insertions(+), 3 deletions(-) diff --git a/displa

[Spice-devel] [spice-html5 1/6] Give the playback channel a separate debug control.

2016-07-01 Thread Jeremy White
Signed-off-by: Jeremy White --- playback.js | 6 +++--- utils.js| 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/playback.js b/playback.js index 9659381..36e6611 100644 --- a/playback.js +++ b/playback.js @@ -46,7 +46,7 @@ SpicePlaybackConn.prototype.process_channel_messa

[Spice-devel] [spice-html5 3/6] Track and make note of requests that take an unusual amount of time.

2016-07-01 Thread Jeremy White
Signed-off-by: Jeremy White --- spiceconn.js | 4 1 file changed, 4 insertions(+) diff --git a/spiceconn.js b/spiceconn.js index 903f3b0..f20424f 100644 --- a/spiceconn.js +++ b/spiceconn.js @@ -334,6 +334,7 @@ SpiceConn.prototype = process_message: function(msg) { var rc

Re: [Spice-devel] spice-html5 audio problem

2016-05-25 Thread Jeremy White
Hi Lorenzo, On 05/25/2016 07:35 AM, Lorenzo Garcia wrote: > Hello, > > First of all, thanks for your help. The biggest change was that we > changed the physical server, but i have used the same debs for the > installation and used the same ubuntu. The spice-html5 client was > upgraded, but with t

Re: [Spice-devel] spice-html5 audio problem

2016-05-25 Thread Lorenzo Garcia
Hello, First of all, thanks for your help. The biggest change was that we changed the physical server, but i have used the same debs for the installation and used the same ubuntu. The spice-html5 client was upgraded, but with the old version it behaves the same. For now I can't use the old ser

Re: [Spice-devel] spice-html5 audio problem

2016-05-13 Thread Christophe Fergeau
On Tue, May 03, 2016 at 11:33:30AM +0200, Lorenzo Garcia wrote: > Hello, > > I've been using the spice-html5 client for few months in a project, but we > found that audio seems to have stopped working properly. > When we open the client it works well, but then it stops randomly; sometimes > in a f

[Spice-devel] spice-html5 audio problem

2016-05-03 Thread Lorenzo Garcia
Hello, I've been using the spice-html5 client for few months in a project, but we found that audio seems to have stopped working properly. When we open the client it works well, but then it stops randomly; sometimes in a few seconds, sometimes it lasts more than a minute or two. Trying to figur

Re: [Spice-devel] spice-html5 keyboard layout fix proposal

2016-03-24 Thread Christophe Fergeau
On Thu, Mar 17, 2016 at 01:37:13PM -0500, Jeremy White wrote: > Hi Eric, > > This is great; thanks for taking the time to put this together. Yes, thanks for that ;) > > Could I ask a few favors, though? This version did not apply to the git > tip for me. I think a few corrections Christophe m

Re: [Spice-devel] spice-html5 keyboard layout fix proposal

2016-03-19 Thread Jeremy White
Hi Eric, This is great; thanks for taking the time to put this together. Could I ask a few favors, though? This version did not apply to the git tip for me. I think a few corrections Christophe made recently keep your utils.js change from applying. Additionally, if you could keep the spice.htm

[Spice-devel] spice-html5 keyboard layout fix proposal

2016-03-19 Thread Eric Grammatico
Gentle(wo)men, I have spent time to fix the keyboard layout in spice-html5. I went to the conclusion the keyboard layout cannot be configured on client (html5) side as Xorg receives key code it interpretes. What ever the key face the user has typed (A or Q) Xorg will map to the character depend

Re: [Spice-devel] [spice-html5] Fix 2 typos in comments

2016-03-08 Thread Christophe Fergeau
On Tue, Mar 08, 2016 at 11:44:43AM +0100, Pavel Grunt wrote: > Acked-by: Pavel Grunt Thanks, pushed. Christophe signature.asc Description: PGP signature ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mail

Re: [Spice-devel] [spice-html5] Fix 2 typos in comments

2016-03-08 Thread Pavel Grunt
Acked-by: Pavel Grunt On Tue, 2016-03-08 at 11:39 +0100, Christophe Fergeau wrote: > --- >  utils.js | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/utils.js b/utils.js > index 9eb42ff..f1a5748 100644 > --- a/utils.js > +++ b/utils.js > @@ -100,7 +100,7 @@ function h

[Spice-devel] [spice-html5] Fix 2 typos in comments

2016-03-08 Thread Christophe Fergeau
--- utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.js b/utils.js index 9eb42ff..f1a5748 100644 --- a/utils.js +++ b/utils.js @@ -100,7 +100,7 @@ function hexdump_buffer(a) /* ** Co

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-29 Thread 苏成才
Hi Pavel: Thanks for your help, anyway the upside down problem has been solved, it's a big step :-). I will try to fix other problems. Best regards, Melo At 2016-01-29 17:01:09, "Pavel Grunt" wrote: Hi Melo, unfortunately I don't know about any other patches to solve the problem.

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-29 Thread Pavel Grunt
Hi Melo, unfortunately I don't know about any other patches to solve the problem. Regards, Pavel On Fri, 2016-01-29 at 16:54 +0800, 苏成才 wrote: > Hi Pavel: >     Just now I tried the branch "topdown", and the problem of upside > down solved. But the mouse shape doesn't display properly and some > wi

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-29 Thread 苏成才
Hi Pavel: Thanks for your reply, and you provide topdown branch. 在 2016-01-29 14:48:54,"Pavel Grunt" 写道: >Hi Melo, > >On Fri, 2016-01-29 at 11:10 +0800, 苏成才 wrote: >> Hi Grunt: >> Thanks for your reply, and I would like to support both spice-gtk >> and spice-html5, if I stop the

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-28 Thread Fabio Fantoni
Il 29/01/2016 07:48, Pavel Grunt ha scritto: > Hi Melo, > > On Fri, 2016-01-29 at 11:10 +0800, 苏成才 wrote: >> Hi Grunt: >> Thanks for your reply, and I would like to support both spice-gtk >> and spice-html5, if I stop the server-side image compression, does it >> increase the network bandwidth

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-28 Thread Pavel Grunt
Hi Melo, On Fri, 2016-01-29 at 11:10 +0800, 苏成才 wrote: > Hi Grunt: >     Thanks for your reply, and I would like to support both spice-gtk > and spice-html5, if I stop the server-side image compression, does it > increase the network bandwidth? It will increase the network bandwidth usage. The

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-28 Thread 苏成才
Hi Grunt: Thanks for your reply, and I would like tosupport bothspice-gtkandspice-html5,if Istop the server-side image compression, does it increasethe network bandwidth? Another solution is uninstall the QXLdriver,will it affect themouse events and screendisplay(for example very slow)?

Re: [Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-28 Thread Pavel Grunt
Hi, On Thu, 2016-01-28 at 16:10 +0800, 苏成才 wrote: > Hi guys: > I encountered a problem: the windows screen cannot display properly > when use spice-html5, also the VM installed spice-guest-tools.exe. > But if i don't install the spice-guest-tools, then everything is ok. > My env is: > 1) spice-htm

[Spice-devel] spice-html5 is not compatible with the spice-guest-tools.

2016-01-27 Thread 苏成才
Hi guys: I encountered a problem: the windows screen cannot display properly when use spice-html5, also the VM installed spice-guest-tools.exe. But if i don't install the spice-guest-tools, then everything is ok. My env is: 1) spice-html5 version is spice-html5-0.1.6 2) websockify is 0.7.0 3) cen

[Spice-devel] [spice-html5] Why I input each letter has a ^[ before it?

2015-09-18 Thread Kris
Hi guys, I has a problem: OS: ubuntu15.04 KVM: QEMU emulator version 2.2.0 (Debian 1:2.2+dfsg-5expubuntu9.4), Copyright (c) 2003-2008 Fabrice Bellard virt-manager: 1.0.1 spice-html5: spice-html5-0.1.6 websockify: 0.7.0 httpd: Apache/2.4.10 --

Re: [Spice-devel] [spice-html5] Why I input each letter has a ^[ before it?

2015-09-18 Thread Kris
Sorry, i got the answer, because I didn't choose the VM's spice server keymap in virt-manager, if the keymap choose the en-us, then everything I typed will be no problem. Thanks, Kris At 2015-09-18 14:47:26, "Kris" <13520814...@126.com> wrote: Hi guys, I has a problem: --

[Spice-devel] [spice-html5] About SASL support

2015-09-16 Thread Alvaro Simon Garcia
Dear Spice developers We are playing around with sasl auth+libvirt/spice in our cloud cluster (http://www.freeipa.org/page/Libvirt_with_VNC_Consoles), we are able to use sasl auth with the remote-viewer client and our spice server, but if we use the html5 client + websockify we get this error: >

  1   2   >