对样式化的媒体接收器CSS进行故障排除 [英] Troubleshooting Styled Media Receiver css

查看:46
本文介绍了对样式化的媒体接收器CSS进行故障排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现样式化的媒体接收器,但是由于某些原因,我的chromecast无法显示图形.我只在黑色背景上得到接收者的名字.不过,在Cast开发者控制台中预览还是可以的.我要使用的CSS是: https://krizan.se/styl_latest.css

I'm trying to implement styled media receiver, but for some reason, my chromecast won't show the graphics. I get only name of my receiver on black background. Preview in cast dev console looks OK though. The css I'm trying to use is this: https://krizan.se/styl_latest.css

我尝试过但没有帮助的事情:

What I tried and did not help:

  • 启用和禁用CORS并没有影响.启用它.通过chromecast从服务器流式传输视频进行了验证
  • 我尝试同时使用图像的绝对路径和相对路径,没有变化.
  • 尝试使用http和https,也都没有更改.
  • 我正在使用的图像为1280x720(如准则所示).尝试将其更改为不同的大小,没有变化
  • 在开发控制台中再次删除并注册我的chromecast,无需更改

我花了很多时间尝试解决此问题,尝试了上述所有组合,但仍然无法在我的投射设备上看到我的图形.关于stackoverflow的一个问题是相同的问题,但没有答案.

I spent too many hours trying to fix this, trying all combinations of above, but still can't see my graphics on my cast device. There was one question on stackoverflow with the same issue, but without answer.

这是某种错误还是我做错了什么?任何帮助都将不胜感激.

Is this some kind of bug or am I doing something wrong? Any help greatly appreciated.

推荐答案

所以我的问题是托管CSS文件的URL不是原始CSS文件.因此,我使用此网站 https://rawgit.com/来托管CSS文件.

So my problem was that url that was hosting the CSS file was not the raw CSS file. So i used this website https://rawgit.com/ to host the CSS file.

这篇关于对样式化的媒体接收器CSS进行故障排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆