mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Actually implement audio and video parts of preamble.
This commit is contained in:
@@ -37,10 +37,10 @@ package net.sourceforge.guacamole.protocol;
|
|||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
import net.sourceforge.guacamole.io.GuacamoleReader;
|
|
||||||
import net.sourceforge.guacamole.io.GuacamoleWriter;
|
|
||||||
import net.sourceforge.guacamole.GuacamoleException;
|
import net.sourceforge.guacamole.GuacamoleException;
|
||||||
import net.sourceforge.guacamole.GuacamoleServerException;
|
import net.sourceforge.guacamole.GuacamoleServerException;
|
||||||
|
import net.sourceforge.guacamole.io.GuacamoleReader;
|
||||||
|
import net.sourceforge.guacamole.io.GuacamoleWriter;
|
||||||
import net.sourceforge.guacamole.net.GuacamoleSocket;
|
import net.sourceforge.guacamole.net.GuacamoleSocket;
|
||||||
import net.sourceforge.guacamole.protocol.GuacamoleInstruction.Operation;
|
import net.sourceforge.guacamole.protocol.GuacamoleInstruction.Operation;
|
||||||
|
|
||||||
@@ -139,11 +139,19 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Send supported audio formats (STUB)
|
// Send supported audio formats
|
||||||
writer.writeInstruction(new GuacamoleInstruction(Operation.CLIENT_AUDIO));
|
writer.writeInstruction(
|
||||||
|
new GuacamoleInstruction(
|
||||||
|
Operation.CLIENT_AUDIO,
|
||||||
|
info.getAudioMimetypes().toArray(new String[0])
|
||||||
|
));
|
||||||
|
|
||||||
// Send supported video formats (STUB)
|
// Send supported video formats
|
||||||
writer.writeInstruction(new GuacamoleInstruction(Operation.CLIENT_VIDEO));
|
writer.writeInstruction(
|
||||||
|
new GuacamoleInstruction(
|
||||||
|
Operation.CLIENT_VIDEO,
|
||||||
|
info.getAudioMimetypes().toArray(new String[0])
|
||||||
|
));
|
||||||
|
|
||||||
// Send args
|
// Send args
|
||||||
writer.writeInstruction(new GuacamoleInstruction(Operation.CLIENT_CONNECT, args));
|
writer.writeInstruction(new GuacamoleInstruction(Operation.CLIENT_CONNECT, args));
|
||||||
|
Reference in New Issue
Block a user