mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-01-05 00:37:18 +00:00
Add a message to control guest streaming
Allows server to tell codec and start/stop the streaming Acked-by: Christophe de Dinechin <cdupontd@redhat.com>
This commit is contained in:
parent
a1d8ccabbf
commit
02b12e66de
@ -81,6 +81,8 @@ typedef enum StreamMsgType {
|
||||
STREAM_TYPE_FORMAT,
|
||||
/* stream data */
|
||||
STREAM_TYPE_DATA,
|
||||
/* server ask to start a new stream */
|
||||
STREAM_TYPE_START_STOP,
|
||||
} StreamMsgType;
|
||||
|
||||
/* Generic extension capabilities.
|
||||
@ -125,4 +127,21 @@ typedef struct StreamMsgData {
|
||||
uint8_t data[0];
|
||||
} StreamMsgData;
|
||||
|
||||
/* Tell to stop current stream and possibly start a new one.
|
||||
* This message is sent by the host to the guest.
|
||||
* Allows to communicate the codecs supported by the clients.
|
||||
* The agent should stop the old stream and if any codec in the
|
||||
* list is supported start streaming (as Mjpeg is always supported
|
||||
* agent should stop only on a real stop request).
|
||||
*
|
||||
* States allowed: any
|
||||
* state will change to Idle (no codecs) or Ready
|
||||
*/
|
||||
typedef struct StreamMsgStartStop {
|
||||
/* supported codecs, 0 to stop streaming */
|
||||
uint8_t num_codecs;
|
||||
/* as defined in SpiceVideoCodecType enumeration */
|
||||
uint8_t codecs[0];
|
||||
} StreamMsgStartStop;
|
||||
|
||||
#endif /* SPICE_STREAM_DEVICE_H_ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user