bfg-common 1.4.240 → 1.4.242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/spice-console/application/packetfactory.js +4 -0
- package/public/spice-console/network/spicechannel.js +1 -1
- package/public/spice-console/spiceobjects/generated/protocol.js +1 -0
- package/public/spice-console/spiceobjects/spiceobjects.js +15 -0
- package/public/spice-console-minify/run.min.js +1 -1
package/package.json
CHANGED
|
@@ -71,6 +71,10 @@ wdi.PacketFactory = {
|
|
|
71
71
|
break;
|
|
72
72
|
case wdi.SpiceVars.SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL:
|
|
73
73
|
break;
|
|
74
|
+
case wdi.SpiceVars.SPICE_MSG_DISPLAY_CURRENT_VIDEO_ENCODE_SETUP_RESPONSE:
|
|
75
|
+
const codecInfo = new wdi.CodecConfig().demarshall(rawSpiceMessage.body)
|
|
76
|
+
new wdi.SpiceChannel().changeCodec(codecInfo.codec)
|
|
77
|
+
break;
|
|
74
78
|
case wdi.SpiceVars.SPICE_MSG_DISPLAY_DRAW_FILL:
|
|
75
79
|
packet = new wdi.SpiceDrawFill().demarshall(rawSpiceMessage.body);
|
|
76
80
|
break;
|
|
@@ -103,7 +103,7 @@ wdi.SpiceChannel = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
103
103
|
if (this.channel === wdi.SpiceVars.SPICE_CHANNEL_DISPLAY) {
|
|
104
104
|
// Custom code
|
|
105
105
|
// Set codec
|
|
106
|
-
this.changeCodec(this.codec)
|
|
106
|
+
// this.changeCodec(this.codec)
|
|
107
107
|
// Custom code end
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -101,6 +101,7 @@ wdi.SpiceVars = {
|
|
|
101
101
|
SPICE_MSG_DISPLAY_STREAM_CLIP:124,
|
|
102
102
|
SPICE_MSG_DISPLAY_STREAM_DESTROY:125,
|
|
103
103
|
SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL:126,
|
|
104
|
+
SPICE_MSG_DISPLAY_CURRENT_VIDEO_ENCODE_SETUP_RESPONSE:131,
|
|
104
105
|
SPICE_MSG_DISPLAY_STREAM_DATA_SIZED:316,
|
|
105
106
|
SPICE_MSG_DISPLAY_STREAM_ACTIVATE_REPORT:319,
|
|
106
107
|
SPICE_MSG_DISPLAY_DRAW_FILL:302,
|
|
@@ -3472,3 +3472,18 @@ wdi.SpiceDisplayReset = $.spcExtend(wdi.SpiceObject, {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
});
|
|
3474
3474
|
|
|
3475
|
+
wdi.CodecConfig = $.spcExtend(wdi.SpiceObject, {
|
|
3476
|
+
objectSize: 4,
|
|
3477
|
+
|
|
3478
|
+
demarshall: function (queue, expSize) {
|
|
3479
|
+
this.expectedSize = expSize || this.objectSize;
|
|
3480
|
+
if (queue.getLength() < this.expectedSize) throw new wdi.Exception({message: "Not enough queue to read", errorCode: 3});
|
|
3481
|
+
|
|
3482
|
+
this.encodePoint = this.bytesToInt8NoAllocate(queue);
|
|
3483
|
+
this.encodeDevice = this.bytesToInt8NoAllocate(queue);
|
|
3484
|
+
this.codec = this.bytesToInt8NoAllocate(queue);
|
|
3485
|
+
this.pixelFormat = this.bytesToInt8NoAllocate(queue);
|
|
3486
|
+
|
|
3487
|
+
return this;
|
|
3488
|
+
}
|
|
3489
|
+
});
|