bfg-common 1.4.373 → 1.4.375
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -380,17 +380,17 @@ wdi.ClientGui = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
380
380
|
wdi.Debug.log('clientgui time: ', this.time)
|
|
381
381
|
var surface = spiceMessage.args
|
|
382
382
|
|
|
383
|
-
// Custom code
|
|
384
|
-
// Проверяем если ширина вм-а меньше ширины окна, вставляем по центру
|
|
385
|
-
if (surface.width < window.innerWidth) {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
// Custom code End
|
|
383
|
+
// // Custom code
|
|
384
|
+
// // Проверяем если ширина вм-а меньше ширины окна, вставляем по центру
|
|
385
|
+
// if (surface.width < window.innerWidth) {
|
|
386
|
+
// const x = (window.innerWidth - surface.width) / 2
|
|
387
|
+
// this.setCanvasMargin({
|
|
388
|
+
// x,
|
|
389
|
+
// y: this.canvasMarginY,
|
|
390
|
+
// })
|
|
391
|
+
// this.setClientOffset(-x, this.canvasMarginY)
|
|
392
|
+
// }
|
|
393
|
+
// // Custom code End
|
|
394
394
|
|
|
395
395
|
var cnv = wdi.GlobalPool.create('Canvas')
|
|
396
396
|
cnv.keepAlive = true //prevent this canvas to return to the pool by packetfilter
|
|
@@ -171,6 +171,7 @@ wdi.CodecH265 = {
|
|
|
171
171
|
this.isReady[streamId] = true
|
|
172
172
|
} else {
|
|
173
173
|
// Try another config.
|
|
174
|
+
window.alert('H.265 codec is not supported in this browser. Please try a different codec or use another browser.')
|
|
174
175
|
console.log('not supported')
|
|
175
176
|
}
|
|
176
177
|
},
|
|
@@ -77,6 +77,13 @@ function start() {
|
|
|
77
77
|
$('#launchWordButton').prop('disabled', false)
|
|
78
78
|
}
|
|
79
79
|
} else if (action === 'resolution') {
|
|
80
|
+
// Делаем выравнивание по центру
|
|
81
|
+
const { 0: width } = params
|
|
82
|
+
const left = (window.innerWidth - width) / 2
|
|
83
|
+
if (left >= 0) {
|
|
84
|
+
document.getElementById('canvas_0').style.left = left + 'px'
|
|
85
|
+
document.getElementById('eventLayer').style.left = left + 'px'
|
|
86
|
+
}
|
|
80
87
|
} else if (action === 'windowMinimized') {
|
|
81
88
|
$(params.canvas).css({ display: 'none' })
|
|
82
89
|
$(params.eventLayer).css({ display: 'none' })
|