chromecast - 摆脱红色叠加"SAMPLE"的CSS

Rob*_*ree 2 css android chromecast

我调试了与版本2 player.js(0002/player.js)一起使用的css,并在下面找到了我想要从默认接收器中删除的RED Overlay的CSS.

来自player.css

#player[type="video"][state="idle"]:after {
  content: "SAMPLE";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: 0;
  text-align: center;
  font-size: 50px;
  margin-top: -150px;
  opacity: 0.1;
  color: red;
}
Run Code Online (Sandbox Code Playgroud)

由于默认的player.js循环通过状态[IDLE PLAY BUFFER],显示红色透明覆盖,"SAMPLE".

当我玩自己的mp4时,我想摆脱这个功能.

所以,我删除了上面的违规css并且我托管了没有红色样本的新css文件.

我使用"Google Cast SDK"进入开发控制台,并将自定义样式更改为我托管的CSS文件的URL.

我等了4个小时.

我重新启动了chromecast设备.

我在设备的调试器控制台中手动重新加载窗口.

并且,我仍然看到带有红色SAMPLE的旧CSS.

我需要改变什么来摆脱与默认接收器一起使用的player.js上的CSS?

下面是我的Android应用程序在chromecast设备的调试器中加载的html.

<html><head>
    <title>Cast Media Player</title>
    <link rel="stylesheet" href="0002/player.css">
    <script type="text/javascript" src="0002/player.js"></script><link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/gtv-videos-bucket/receivers/f742e4109ea711e3a5e20800200c9a66/style.css">
    <script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script>
    <script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/mediaplayer/0.3.0/media_player.js"></script>
  </head>
  <body>
    <div id="player" class="gcpa" type="video" state="playing"><div class="background"></div><div class="gcpb" style=""><video style="background-image: none;" src="http://....0685/fade0569-bd5b-4cc2-a05d-85cb24860c56-20140430101403.mp4"></video><div class="logo"></div><div class="gcpr"></div><div class="splash"></div><div class="watermark"></div><div class="gcpc"></div><div class="gcpd"><div class="gcph"><div class="gcpg" style="background-image: url(http://.....ecb7c32-me1563624197.jpg);"></div><div class="gcpf"><div class="gcpi">the light the Divinity t</div><div class="gcpj"><div><span>robrowntree</span></div><div><span>the light the Divinity the absolute poise Aaron rumpled beds at morning </span></div></div></div></div><div class="gcpk"><span class="gcpl"></span><span class="gcpp">00:08</span><span class="gcpq">00:10</span><div class="gcpm"><div class="gcpn progressBar" style="width: 80%;"></div><div class="gcpo" style="left: 80%;"></div></div></div></div></div><div class="message"></div></div>
    <script>
      var playerDiv = document.querySelector("#player");
      new castplayer.CastPlayer(playerDiv).start();
    </script>


</body></html>
Run Code Online (Sandbox Code Playgroud)

mks*_*eve 10

如果使用applicationId"CC1AD845",则删除SAMPLE.

这是默认的应用程序ID,由常量定义CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID.