I subscribe to the ‘share-content-dimension-change’ callback in order to receive notifications when the shared content dimension changed. The callback is working, but in parameter, the payload is always the following one:
Thanks for your fix. Unfortunately, I still receive ‘share-content-dimension-change’ events with undefined ‘width’ and ‘height’ with Zoom Video SDK (Web) v1.1.4 on Chrome 93 for instance.
I’m on macOS, Chrome 93 and using v1.1.4 and I am correctly receiving the height and width within the object returned for ‘share-content-deimension-change’. Have you tried it on Chrome on a different OS to see if it works to help the Zoom guys pinpoint the issue?
After more tests, it seems to be working on Windows with Chrome 93. I was testing on Linux Ubuntu with Chrome 93. There, it is not working. It is also not working with Firefox on Ubuntu.
We have tested the receiving sharing on Chrome 93 and Firefox, Ubuntu platform. And it works well. Could you help confirm using the latest code? Browser cache sometimes may be the potential cause.
Actually, I was also able to reproduce this on Chrome on Windows 10.
As you can see in the following screenshot, I start to share the screen on the Firefox browser (left) and receiving a shared screen on the Chrome browser (right) both on Windows 10. The content dimension is correct on the left (type=sended) but undefined width/height on the right (type=received).
I have been able to solve my issue. It seems to be due to the fact that I was hiding the ‘source’ screen-share canvas with CSS display:none because it did not wanted to display the screen on the user that was sharing his/her screen.