If the server & client support SPICE_DISPLAY_CAP_STREAM_REPORT, the server first sends SPICE_MSG_DISPLAY_STREAM_ACTIVATE_REPORT. Then, the client periodically sends SPICE_MSGC_DISPLAY_STREAM_REPORT messages that supply the server details about the current quality of the video streaming on the client side. The server analyses the report and adjust the stream parameters accordingly. --- spice/enums.h | 2 ++ spice/protocol.h | 1 + 2 files changed, 3 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index cf5715f..3c89f2e 100644 --- a/spice/enums.h +++ b/spice/enums.h @@ -470,12 +470,14 @@ enum { SPICE_MSG_DISPLAY_STREAM_DATA_SIZED, SPICE_MSG_DISPLAY_MONITORS_CONFIG, SPICE_MSG_DISPLAY_DRAW_COMPOSITE, + SPICE_MSG_DISPLAY_STREAM_ACTIVATE_REPORT, SPICE_MSG_END_DISPLAY }; enum { SPICE_MSGC_DISPLAY_INIT = 101, + SPICE_MSGC_DISPLAY_STREAM_REPORT, SPICE_MSGC_END_DISPLAY }; diff --git a/spice/protocol.h b/spice/protocol.h index e500a17..028cade 100644 --- a/spice/protocol.h +++ b/spice/protocol.h @@ -129,6 +129,7 @@ enum { SPICE_DISPLAY_CAP_MONITORS_CONFIG, SPICE_DISPLAY_CAP_COMPOSITE, SPICE_DISPLAY_CAP_A8_SURFACE, + SPICE_DISPLAY_CAP_STREAM_REPORT, }; enum { -- 1.8.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel