Add additional data to debug popup
This commit is contained in:
parent
85fedbfeaf
commit
2aa91df820
@ -560,6 +560,10 @@ class Resizer {
|
|||||||
const wdiffAfterZoom = realVideoWidth * stretchFactors.xFactor - this.conf.player.dimensions.width;
|
const wdiffAfterZoom = realVideoWidth * stretchFactors.xFactor - this.conf.player.dimensions.width;
|
||||||
const hdiffAfterZoom = realVideoHeight * stretchFactors.yFactor - this.conf.player.dimensions.height;
|
const hdiffAfterZoom = realVideoHeight * stretchFactors.yFactor - this.conf.player.dimensions.height;
|
||||||
|
|
||||||
|
debugObject['transformedSize'] = {
|
||||||
|
x: realVideoWidth * stretchFactors.xFactor,
|
||||||
|
y: realVideoHeight * stretchFactors.yFactor
|
||||||
|
}
|
||||||
debugObject['sizeDifferenceToPlayer'] = {
|
debugObject['sizeDifferenceToPlayer'] = {
|
||||||
beforeZoom: {
|
beforeZoom: {
|
||||||
wdiff,
|
wdiff,
|
||||||
@ -591,11 +595,17 @@ class Resizer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debugObject['videoTranslation'] = {
|
debugObject['videoTransform'] = {
|
||||||
alignment: VideoAlignment.toString(this.videoAlignment),
|
alignment: VideoAlignment.toString(this.videoAlignment),
|
||||||
panningEnabled: !!this.pan,
|
panningEnabled: !!this.pan,
|
||||||
x: translate.x,
|
translate: {
|
||||||
y: translate.y,
|
x: translate.x,
|
||||||
|
y: translate.y,
|
||||||
|
},
|
||||||
|
scale: {
|
||||||
|
x: stretchFactors.xFactor,
|
||||||
|
y: stretchFactors.yFactor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.conf.player.reportPlayerDimensionForDebugging();
|
this.conf.player.reportPlayerDimensionForDebugging();
|
||||||
|
Loading…
Reference in New Issue
Block a user