mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Fix ordering of reads.
This commit is contained in:
@@ -868,15 +868,14 @@ Guacamole.Client = function(tunnel) {
|
|||||||
"audio": function(parameters) {
|
"audio": function(parameters) {
|
||||||
|
|
||||||
var stream_index = parseInt(parameters[0]);
|
var stream_index = parseInt(parameters[0]);
|
||||||
|
var channel = getAudioChannel(parseInt(parameters[1]));
|
||||||
|
var mimetype = parameters[2];
|
||||||
|
var duration = parseFloat(parameters[3]);
|
||||||
|
|
||||||
// Create stream
|
// Create stream
|
||||||
var stream = streams[stream_index] =
|
var stream = streams[stream_index] =
|
||||||
new Guacamole.InputStream(mimetype);
|
new Guacamole.InputStream(mimetype);
|
||||||
|
|
||||||
var channel = getAudioChannel(parseInt(parameters[1]));
|
|
||||||
var mimetype = parameters[2];
|
|
||||||
var duration = parseFloat(parameters[3]);
|
|
||||||
|
|
||||||
stream.onclose = function() {
|
stream.onclose = function() {
|
||||||
channel.play(mimetype, duration, stream.getBlob());
|
channel.play(mimetype, duration, stream.getBlob());
|
||||||
};
|
};
|
||||||
@@ -1421,15 +1420,14 @@ Guacamole.Client = function(tunnel) {
|
|||||||
"video": function(parameters) {
|
"video": function(parameters) {
|
||||||
|
|
||||||
var stream_index = parseInt(parameters[0]);
|
var stream_index = parseInt(parameters[0]);
|
||||||
|
var layer = getLayer(parseInt(parameters[1]));
|
||||||
|
var mimetype = parameters[2];
|
||||||
|
var duration = parseFloat(parameters[3]);
|
||||||
|
|
||||||
// Create stream
|
// Create stream
|
||||||
var stream = streams[stream_index] =
|
var stream = streams[stream_index] =
|
||||||
new Guacamole.InputStream(mimetype);
|
new Guacamole.InputStream(mimetype);
|
||||||
|
|
||||||
var layer = getLayer(parseInt(parameters[1]));
|
|
||||||
var mimetype = parameters[2];
|
|
||||||
var duration = parseFloat(parameters[3]);
|
|
||||||
|
|
||||||
// Play video once closed
|
// Play video once closed
|
||||||
stream.onclose = function() {
|
stream.onclose = function() {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user