mirror of
https://github.com/linuxserver/gclient.git
synced 2026-02-20 02:54:19 +08:00
adding audio support pending upstream changes
This commit is contained in:
parent
b2d0fe7014
commit
f01e9e42e0
@ -113,6 +113,11 @@ keyboard.onkeydown = function (keysym) {
|
||||
keyboard.onkeyup = function (keysym) {
|
||||
guac.sendKeyEvent(0, keysym);
|
||||
};
|
||||
// Audio
|
||||
guac.onaudio = function clientAudio(stream, mimetype) {
|
||||
let context = Guacamole.AudioContextFactory.getAudioContext();
|
||||
context.resume().then(() => console.log('play audio'));
|
||||
};
|
||||
// Disable keyboard events if our sidebar inputs are used
|
||||
$(".stopcapture").click(function(e) {
|
||||
keyboard.onkeydown = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user