Why does the chromecast client declare its height and width as 720p to the receiver app?

前端 未结 3 1356
天命终不由人
天命终不由人 2021-02-15 12:28

Why does the chromecast declare its client height and width to be 720p to the receiver app server?

I am trying to display non-video content and assumed I would be able t

3条回答
  •  猫巷女王i
    2021-02-15 13:32

    Chromecast devices have a different Graphics Window size than it's Video window - The Graphics window uses a 1280x720 resolution surface. The window.height and window.width properties are going to report 720 and 1280 respectively. However, Chromecast is capable of displaying video at up to 1080p resolution i.e. 1920x1080. Therefore applications should not use the screen size to select video content resolution.

提交回复
热议问题