Chromecast Ultra限制HTML解析?

问题描述 投票:0回答:1

我正在尝试让Chromecast Ultra显示一个3840x2160的网页。当内容是一个简单的IMG时没有问题,但是当我尝试iframe或更复杂的HTML时,它会将其裁剪为看起来像左上角但不到整个屏幕的四分之一。

我尝试从同一网站的Chrome标签中进行Casting(镜像),这样我就可以看到1920x1080。一个简单的图像显示完整的res。

<html>
<head>
  <script type="text/javascript"
    src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js">
  </script>
<style>
  body {
    display: block;
    margin: 0px;
    color: #f0f000;
    background-color: #ff00ff;
    width: 100%;  //this is important
    height: 100%;  //this is important
}

  iframe {
    width: 3840px;
    height: 2160px;
    min-width: 3840px;
    min-height: 2160px;
}
</style>
</head>

<body>

<!--<img src="EdAGGFS.jpg" width="100%" height="100%" frameBorder="0">Browser not compatible.</img>-->

<iframe id="test" src="https://sorrycantshowyou.com" width="100%" height="100%" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>

  <script>
    const context = cast.framework.CastReceiverContext.getInstance();
    const options = new cast.framework.CastReceiverOptions();
    //options.maxInactivity = 3600; //Development only
    options.disableIdleTimeout = true;
    context.start(options);
  </script>
</body>
</html>

我没有想法进一步测试。我找不到任何能够为Chrome内容提供Chromecast Ultra规范的参考资料。我只是假设它应该能够像视频或图像一样支持3840x2160。我错了吗?也许Chromecast的处理器不能将HTML渲染得那么大,所以它反过来呢?

chromecast
1个回答
0
投票

这是Chromecast的expected behavior

注意:图像的显示尺寸限制为720p(1280x720)。图像应优化至1280x720或更低,以避免缩小接收器设备。

此外,它在其中一个Chromecast product review online中提到过。

Chromecast 2以全高清1080p分辨率显示内容 - 即1,920 x 1,080像素。无论您是拥有全高清还是4K电视,您仍然只能观看1080p素材。如果你有720p高清电视,内容将缩小到1,280 x 720像素。

© www.soinside.com 2019 - 2024. All rights reserved.